Hi guys:
with elasticsearch version 7.16.0, I can run org.elasticsearch.bootstrap.Elasticsearch directly in Intellij Idea.The configuration of Intellij Idea is as follows:
I'm somewhat surprised this ever worked, it certainly wasn't intentional. The developer docs describe the way we expect folks to run an Elasticsearch node in a debugger:
If you want to run and debug Elasticsearch from your IDE, the ./gradlew run task supports a remote debugging option. Run the following from your terminal:
./gradlew run --debug-jvm
Next start the "Debug Elasticsearch" run configuration in IntelliJ. This will enable the IDE to connect to the process and allow debug functionality.
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.