awslabs / amazon-kinesis-client-ruby

A Ruby interface for the Amazon Kinesis Client Library. Allows developers to easily create robust application to process Amazon Kinesis streams in Ruby.
Apache License 2.0
146 stars 55 forks source link

Struggling to get example consumer working #24

Closed verenion closed 6 years ago

verenion commented 6 years ago

I've been trying to get the example consumer working correctly our multiple AWS accounts. I've tried with both the Node.JS client and now the ruby client, both throw the same error after a few minutes:

java.util.concurrent.ExecutionException: java.lang.RuntimeException: Reached end of STDIN of child process for shard shardId-000000000000 so won't be able to return a message.

This is the default code and nothing has been changed but the connection/stream details. Anyone else having issues getting the samples to run?

pfifer commented 6 years ago

I'll take a look, and see make sure that it's working. I do have some questions that could help me in troubleshooting this:

verenion commented 6 years ago

Thanks, we managed to resolve this issue. Turned out to be an error our end. It was becuase of where we were running the script from. We ended up fixing our node client, so rather than bin/kcl-bootstrap, we used ../bin/kcl-bootstrap. In the ruby client, it was because it couldn't find the kclrb.rb file. In both cases, the client process was throwing errors, but not showing them in the logs.