Coder Social home page Coder Social logo

Comments (6)

corby avatar corby commented on July 22, 2024 8

To clear this properly, find the DynamoDB table with that appName and delete all records.
This will clear the checkpoints from the system so that it won't try to start at an invalid sequence id.

from amazon-kinesis-connectors.

harlow avatar harlow commented on July 22, 2024 4

Found the issue. Because the app names are duplicated across sample applications:

https://github.com/awslabs/amazon-kinesis-connectors/blob/master/src/main/samples/redshiftmanifest/S3ManifestSample.properties#L2

https://github.com/awslabs/amazon-kinesis-connectors/blob/master/src/main/samples/s3/S3Sample.properties#L2

They try to use the same DynamoDB table for lookup points in the Kinesis stream. Once I renamed the app it created a new DB table and everything began working as expected.

from amazon-kinesis-connectors.

kevinmeredith avatar kevinmeredith commented on July 22, 2024 1

I faced a similar issue with the redshiftbasic sample. Using @harlow's advice, re-naming the appName value within RedShiftBasicSample.properties resolved my issue too.

Thanks.

from amazon-kinesis-connectors.

darkcrawler01 avatar darkcrawler01 commented on July 22, 2024

@harlow recommended to use local instance of dynamo db and kinesis for developing.

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html
https://github.com/mhart/kinesalite

from amazon-kinesis-connectors.

landonvg avatar landonvg commented on July 22, 2024

@corby I deleted the record from DynamoDB as you suggested, now I'm getting NPE:

java.lang.NullPointerException: null
	at com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisClientLibLeaseCoordinator.getCheckpointObject(KinesisClientLibLeaseCoordinator.java:265)
	at com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitializeTask.call(InitializeTask.java:82)
	at com.amazonaws.services.kinesis.clientlibrary.lib.worker.MetricsCollectingTaskDecorator.call(MetricsCollectingTaskDecorator.java:49)
	at com.amazonaws.services.kinesis.clientlibrary.lib.worker.MetricsCollectingTaskDecorator.call(MetricsCollectingTaskDecorator.java:24)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

from amazon-kinesis-connectors.

usmanovbf avatar usmanovbf commented on July 22, 2024

@landonvg same exception

from amazon-kinesis-connectors.

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.