How to debug elasticsearch with intellij idea


(Fangjun Song) #1

Hello every one, I want debug the elasticsearch source code.But I meet the below error, please give me some help, thanks.

The idea vm config:
-Des.foreground=yes
-Des.path.home=/Users/myname/projects/elasticsearch/core
-Des.logger.level=DEBUG
-ea
-Dlog4j2.disable.jmx=true
-Xms512m
-Xmx512m
-Des.security.manager.enabled=false
-Des.http.cors.enabled=true
-Des.http.cors.allow-origin=*
-Delasticsearch
-Djava.awt.headless=true
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=logs/heapdump.hprof

=====================================================================
Error:
[2017-01-20T17:34:48,353][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unsupported transport.type []
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[main/:?]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:58) ~[main/:?]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[main/:?]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[main/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) ~[idea_rt.jar:?]
Caused by: java.lang.IllegalStateException: Unsupported transport.type []
at org.elasticsearch.common.network.NetworkModule.getTransportSupplier(NetworkModule.java:210) ~[main/:?]
at org.elasticsearch.node.Node.(Node.java:398) ~[main/:?]
at org.elasticsearch.node.Node.(Node.java:227) ~[main/:?]
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:221) ~[main/:?]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[main/:?]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:339) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[main/:?]
... 11 more

Process finished with exit code 1


(David Pilato) #2

Read:

gradle run --debug-jvm

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.