Running elasticsearch from Intellij IDEA


(Carlos Terron) #1

I'm trying to learn about Elasticsearch internals. I have imported the code from github in idea using the pom.xml. After reading the elastichsearch start script and the elasticsearch.in.sh file. After see it, I understand that those scripts pass the next parameters to java to start ES:

The locale must be en_US.UTF-8

LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

Those parameters must be passed to java

-Des.path.home=/data/store/elastic -Delasticsearch -Des.pidfile=/data/store/elastic/run/elastic.pid -Dfile.encoding=UTF-8 -Xms2G -Xmx2G -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC
We need to pass more java configuration? Are there any document I can use to read what parameters I need to pass?

(André) #2

You should be able to run the main function in org.elasticsearch.bootstrap.ElasticsearchF without any extra setup to get started.


(system) #3