amazon-kinesis-agent
amazon-kinesis-agent copied to clipboard
Unable to Install kinesis agent
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.
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.
OpenJDK 11 Support - https://github.com/awslabs/amazon-kinesis-agent/pull/262