Hi Ben, Once you have cloned the source, you should be able to open it as a project in Intellij by just pointing to the root directory.
To run an ES server from Intellij you can create a run configuration with these settings: Main class: org.elasticsearch.bootstrap.Elasticsearch VM options: -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/heapdump.hprof -Delasticsearch -Des.foreground=yes -Djava.library.path=lib/sigar -ea -Des.config=<ABSOLUTE_PATH_TO_YOUR_CONFIG_DIR>/elasticsearch.yml -Des.logger.level=DEBUG Working directory: I have this pointed to the top-level source dir. Not sure it matters. Environment: ES_TEST_LOCAL=true With that you should be able to hit the magical green arrow button to run it. You can set breakpoints in the code, go to a terminal and issue curl commands, and you'll be able to step through the code. - A On Mar 13, 2014, at 1:50 PM, Benjamin Black <[email protected]> wrote: > would one of you wise sages offer up the magical incantations for working > with ES source in intellij? specifically, what are the configuration steps > from cloning the github repo through to debugging a running ES instance? i > have had no luck with either following the README, random mailing list posts, > or blogs or with banging my face on the keyboard like an angry simian. your > assistance is appreciated. > > > b > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/663e722e-9cff-45ba-bbd8-b4dd8efa9829%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/76FE575C-5730-4ED7-B3AA-0245289E9A03%40elasticsearch.com. For more options, visit https://groups.google.com/d/optout.
