amazon-kinesis-agent icon indicating copy to clipboard operation
amazon-kinesis-agent copied to clipboard

Unable to initialize AmazonCloudWatchClient

Open billonter opened this issue 6 years ago • 0 comments

Good Afternoon, I have downloaded the amazon kinesis agent source code and I have also installed the agent on the same machine but when I try to run the agent from the source code I always get this error:

2018-07-13 10:12:22.967-0400 ip-10-0-0-32.ec2.internal (sender-12) com.amazon.kinesis.streaming.agent.tailing.AsyncPublisher [ERROR] AsyncPublisher[fh:tefm_logs_firehose:/opt/tefm_logs/UAT_release_1_build_5/business3/tefm.lo*]:RecordBuffer(id=2,records=143,bytes=54246) Retriable send error (java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.services.cloudwatch.AmazonCloudWatchClient). Will retry.

I wanted to mention that I'm using a clean version of the source code. I haven't done any modification on the java code. The only change is in the custom.log4j.xml (location of the log file). I was able to successfully run the installed amazon kinesis agent.

I attached the agent.json used for the agent installation (InstalledAgent.json) and the agent.json used with the source code (SourceCodeAgent.json). InstalledAgent.txt SourceCodeAgent.txt

billonter avatar Jul 13 '18 19:07 billonter