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

Unable to Install kinesis agent

Open PranathiSG opened this issue 2 years ago • 2 comments

I'm trying to install kinesis agent on my linux machine.

After downloading the code from repo, I executed the command "sudo ./setup --install" which is giving the error - "amazon-kinesis-agent-master/build.xml.29: Unsupported Java version: 11. Make sure that Java version is 1.8 or greater."

My Java version : openjdk 11.0.17 2022-10-18 OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04) OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing)

I've tried to install the agent with java version 17.0.6 19.0.2, but with this version also, I'm getting similar error.

Any help on this is highly appreciated.

PranathiSG avatar Feb 08 '23 08:02 PranathiSG

You need to install openjdk-8-jdk in order to install the agent (e.g. on Debian/ubuntu sudo apt-get install -y openjdk-8-jdk). Not sure why the agent doesn't support openjdk-11-jdk like other apps and still leverages jdk-8 from the early 2010s.

NothinRandom avatar Mar 13 '23 06:03 NothinRandom

OpenJDK 11 Support - https://github.com/awslabs/amazon-kinesis-agent/pull/262

pg-faheem avatar Oct 23 '23 16:10 pg-faheem