I have Elasticsearch service with version 8.5.0
When I try to invoke Elasticsearch.main from Java class, the following exception is thrown
Can you please help me to resolve that
Invoked call - Elasticsearch.main(args)
java.io.EOFException
at org.elasticsearch.common.io.stream.InputStreamStreamInput.readByte(InputStreamStreamInput.java:47)
at org.elasticsearch.common.io.stream.StreamInput.readBoolean(StreamInput.java:549)
at org.elasticsearch.bootstrap.ServerArgs.<init>(ServerArgs.java:60)
at org.elasticsearch.bootstrap.Elasticsearch.initPhase1(Elasticsearch.java:117)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:62)
The same works for 8.2 version.
Are there any changes to be adapted?
I have Elasticsearch service running with 8.2 version. I start it from ant file using pjava
Now when I upgrade the version of Elasticsearch to 8.5.0, I get the Exception.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.