awslabs / amazon-kinesis-agent

Continuously monitors a set of log files and sends new data to the Amazon Kinesis Stream and Amazon Kinesis Firehose in near-real-time.
Other
352 stars 218 forks source link

Unable to Install kinesis agent #250

Open PranathiSG opened 1 year ago

PranathiSG commented 1 year ago

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.

NothinRandom commented 1 year ago

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.

pg-faheem commented 9 months ago

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