Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to connect to elastic versions 5.X.X #54

Open
chitaks opened this issue Oct 15, 2018 · 0 comments
Open

Not able to connect to elastic versions 5.X.X #54

chitaks opened this issue Oct 15, 2018 · 0 comments

Comments

@chitaks
Copy link

chitaks commented Oct 15, 2018

Hello!
I am trying to connect to elastic server with version 5.3.0 and run SQL queries.
I am getting following error on server side .

[2018-10-15T12:37:06,482][WARN ][o.e.t.n.Netty4Transport ] [gIaF784] exception caught on transport layer [[id: 0x294d658d, L:/10.54.135.59:9300 - R:/1
0.54.135.59:52665]], closing connection
java.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]
at org.elasticsearch.transport.TcpTransport.messageReceived(TcpTransport.java:1323) ~[elasticsearch-5.3.0.jar:5.3.0]
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74) ~[transport-netty4-5.3.0.jar
:5.3.0]

I understand that support for later versions of elastic is not yet available.
When will the new release be available? Or is there any other way to bypass it.
I tried compiling the master branch code and use the jar, still not able to connect.

I am getting the following error on client side when connecting using mater branch,

Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/client/transport/TransportClient
at nl.anchormen.sql4es.jdbc.ESDriver.connect(ESDriver.java:47)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.transport.TransportClient
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant