No more local transport on 6.0.x


(Simone Scarduzio) #1

Hi, I'm trying to run ES from my IDE. Everything is fine with 5.x using transport.type: local setting. But as soon as I change to 6.0.0-beta2 I get this exception:

[2017-10-02T10:43:49,295][INFO ][o.e.n.Node               ] [] initializing ...
[2017-10-02T10:43:49,428][INFO ][o.e.e.NodeEnvironment    ] [5UTUS-1] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [156.3gb], net total_space [464.7gb], types [hfs]
[2017-10-02T10:43:49,428][INFO ][o.e.e.NodeEnvironment    ] [5UTUS-1] heap size [981.5mb], compressed ordinary object pointers [true]
[2017-10-02T10:43:49,550][INFO ][o.e.n.Node               ] node name [5UTUS-1] derived from node ID [5UTUS-1uQF6oz8txX73z2w]; set [node.name] to override
[2017-10-02T10:43:49,550][INFO ][o.e.n.Node               ] version[6.0.0-rc1], pid[81829], build[b9c0df2/2017-09-25T19:11:45.815Z], OS[Mac OS X/10.12.6/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_101/25.101-b13]
[2017-10-02T10:43:49,550][INFO ][o.e.n.Node               ] JVM arguments [-Djava.security.policy=/me/elasticsearch-readonlyrest-plugin-5.x/integration-tests/src/test/eshome/plugins/readonlyrest/plugin-security.policy, -Djava.awt.headless=true, -Des.insecure.allow.root=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Des.path.home=/me/elasticsearch-readonlyrest-plugin-5.x/integration-tests/src/test/eshome, -Dlog4j2.disable.jmx=true, -Xms1g, -Xmx1g, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j.skipJansi=true, -Des.path.conf=config, -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=58271:/Applications/IntelliJ IDEA.app/Contents/bin]
[2017-10-02T10:43:49,550][WARN ][o.e.n.Node               ] version [6.0.0-rc1] is a pre-release version of Elasticsearch and is not suitable for production
[2017-10-02T10:43:49,921][INFO ][o.e.p.PluginsService     ] [5UTUS-1] no modules loaded
[2017-10-02T10:43:49,926][INFO ][o.e.p.PluginsService     ] [5UTUS-1] loaded plugin [readonlyrest]
[2017-10-02T10:43:52,048][DEBUG][o.e.a.ActionModule       ] Using REST wrapper from plugin org.elasticsearch.plugin.readonlyrest.es.ReadonlyRestPlugin
[2017-10-02T10:43:52,122][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unsupported transport.type [local]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:134) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:121) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:69) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
Caused by: java.lang.IllegalStateException: Unsupported transport.type [local]
	at org.elasticsearch.common.network.NetworkModule.getTransportSupplier(NetworkModule.java:211) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.node.Node.<init>(Node.java:418) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.node.Node.<init>(Node.java:245) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:130) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]
	... 6 more

Process finished with exit code 1

Commenting out the transport.type: local does not help, as the fundamental issue is that the NetworkModule.transportFactories hashmap is empty.

In 5.x, the local transport was added in the NetworkModule constructor. This is not true anymore in 6.0.x.

Which is weird, because I see you have left a dangling, unused constant:

public static final String LOCAL_TRANSPORT = "local";

How can I tell ES 6.0.* to use local transport? Otherwise it doesn't even start :frowning:


(Jason Tedor) #2

You can not. Local transport has been removed.


(Simone Scarduzio) #3

OK then that constant is a left over?


(Jason Tedor) #4

Yes, I removed it.


(system) #5

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