Giter Club home page Giter Club logo

Comments (6)

knorwood avatar knorwood commented on August 16, 2024

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.

 avatar commented on August 16, 2024

I can confirm that this suggested workaround is working.

Thanks!

from amazon-kinesis-client-python.

jupemara avatar jupemara commented on August 16, 2024

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.

 avatar commented on August 16, 2024

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.

jupemara avatar jupemara commented on August 16, 2024

OK! Thanks.

from amazon-kinesis-client-python.

Cory-Bradshaw avatar Cory-Bradshaw commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.