How to config Program arguments in IntelliJ ?
I got this error when I try to run:
ERROR: the system property [es.path.conf] must be set
How to config Program arguments in IntelliJ ?
I got this error when I try to run:
ERROR: the system property [es.path.conf] must be set
Running Elasticsearch through IntelliJ is not easy to do properly (e.g., the modules will not be there without significant effort). Instead, you should start Elasticsearch from the command line and attach IntelliJ to the running instance. To do this:
gradle :distribution:tar:assemble
distribution/tar/build/distributions
somewhere on your filesystem (e.g.,tar xf distribution/tar/build/distributions/elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz -C ~/elasticsearch
) if you are building from master which is currently on 7.0.0-alpha1 and you want to untar to ~/elasticsearch
)ES_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 bin/elasticsearch
)Now Elasticsearch will start running and you can set breakpoints etc.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
After downloading Elasticsearch from github, in the top level directory there is file called CONTRIBUTING.md which describes how to configure your IDE, and there is also a file called TESTING.asciidoc which describes how to debug.
Based on the instructions contained in those text files, I have written a blog post that gives step-by-step instructions on how to configure IntelliJ IDEA to debug Elasticsearch and Lucene.
That's great. Thanks for sharing it with the community.
© 2020. All Rights Reserved - Elasticsearch
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.