Comments (6)
Hi @mccomplete,
Thanks for bringing this to our attention. The amazon_kclpy
is packaged with the aws-java-sdk 1.7 right now which did not support the eu-central-1 region. That region is supported as of the 1.9.2 release of the aws-java-sdk. With the 1.9 releases the various components of the sdk have been broken up into smaller modules so we'll need to work out exactly which subset of the new packages we would like to ship along with amazon_kclpy
I the meantime I have a solution which should unblock you. I was able to get the sample working with eu-central-1 with the following steps:
- Download the latest version of the sdk here: aws-java-sdk (should be 1.9.something)
unzip aws-java-sdk-1.9.8.zip
- I then found the complete jar at this location
aws-java-sdk-1.9.8/lib/aws-java-sdk-1.9.8.jar
Then the 1.9.8 jar can be prepended to the class path using the helper script's --classpath
option
amazon_kclpy_helper.py --print_command --java <path-to-java> --properties <path-to-properties> --classpath aws-java-sdk-1.9.8/lib/aws-java-sdk-1.9.8.jar
from amazon-kinesis-client-python.
I can confirm that this suggested workaround is working.
Thanks!
from amazon-kinesis-client-python.
Hi.
I have a same issue in ap-northeast-1
region. In this region, is cause of this problem same, too?
But I've resolved this problem by using --region-name
argument at sample_kinesis_wordputter.py
(not using regionName = ap-notheast-1
in sample.properties
).
from amazon-kinesis-client-python.
Yes its the same problem. The older version do not read the sample.properties file properly it seems. The solution mentioned by @knorwood is a good fix until the latest fix gets deployed into PIP.
Here was my solution:
pip install amazon_kclpy pyyaml
wget http://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip -O aws-java-sdk.zip
&& unzip aws-java-sdk.zip
&& rm -rf aws-java-sdk.zip
AWS_SDK_VERSION=ls -1 | grep 'aws-java-sdk-\d*' | awk -F'-' '{ print $4 }'
echo "Starting KCL, AWS_SDK_VERSION=${AWS_SDK_VERSION}"
MULTILANG_DAEMON_PATH=python /home/kinesis/kcl/cmd_helper.py --print_command --java /usr/bin/java --properties /home/kinesis/kcl/app.properties --classpath /home/kinesis/aws-java-sdk-${AWS_SDK_VERSION}/lib/aws-java-sdk-${AWS_SDK_VERSION}.jar
/bin/bash -c "${MULTILANG_DAEMON_PATH}"
from amazon-kinesis-client-python.
OK! Thanks.
from amazon-kinesis-client-python.
Closing this issue, as more recent releases have updated the AWS SDK to a version that supports this region.
from amazon-kinesis-client-python.
Related Issues (20)
- KCL client consistently throws exception when in use with localstack HOT 1
- Warnings on an Internal Service Error HOT 2
- How to get video data from signaling channel HOT 1
- Is cross account/cross region possible
- How to get metadata from Amazon Kinesis Video Streams?
- Need new release > 2.0.6 to solve vulnerabilities in dependencies HOT 6
- Kinesis Python going to sleep HOT 1
- Using Python KCL library for mutli-stream processing HOT 1
- Support STSAssumeRoleWithWebIdentitySessionCredentialsProvider? HOT 1
- MultiLang Daemon for KCL 2.0 for python - how to increase the SDK timeouts? HOT 1
- AWSCredentialsProvider issue when using named profile
- The security token included in the request is invalid HOT 1
- No such file or directory: 'pom.xml' Error when installing 2.1.0 HOT 2
- Is calling checkpoint() with no args on shutdown correct behaviour?
- Make Maven repository configurable in download_jars HOT 1
- CreateProcess error=193, %1 is not a valid Win32 application
- CheckpointInput has no attribute action HOT 1
- Is it possible to run applications utilizing amazon_kclpy in debug mode?
- Can cloudwatch metrics be disabled?
- Upgrade Java SDK minor version to allow use of EKS Pod Identities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-client-python.