ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiri Tobisek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-8043) Thin client fails while connecting to Ignite instance in docker container
Date Mon, 26 Mar 2018 11:59:00 GMT
Jiri Tobisek created IGNITE-8043:
------------------------------------

             Summary: Thin client fails while connecting to Ignite instance in docker container
                 Key: IGNITE-8043
                 URL: https://issues.apache.org/jira/browse/IGNITE-8043
             Project: Ignite
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.4, 2.3, 2.5
         Environment: JDK8. Happens both in local dev environment (Mac OSX) and remote Ubuntu
16 server.
Docker 17.12.0-ce
            Reporter: Jiri Tobisek


I am running ignite inside docker:

{{docker run -it -p 11211:11211 apacheignite/ignite:2.4.0}}

 

While trying to connect via the thin client (in scala):


{{val connection: Connection = DriverManager.getConnection(s"""jdbc:ignite:thin://localhost:11211/""")}}

I am getting:

{{Failed to connect to Ignite cluster [host=localhost, port=11211]}}
{{java.sql.SQLException: Failed to connect to Ignite cluster [host=localhost, port=11211]}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.<init>(JdbcThinConnection.java:151)}}
{{ at org.apache.ignite.IgniteJdbcThinDriver.connect(IgniteJdbcThinDriver.java:170)}}
{{ at java.sql.DriverManager.getConnection(DriverManager.java:664)}}
{{ at java.sql.DriverManager.getConnection(DriverManager.java:270)}}
{{...}}


{{Caused by: java.io.IOException: Failed to read incoming message (not enough data).}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.read(JdbcThinTcpIo.java:406)}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.read(JdbcThinTcpIo.java:384)}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.handshake(JdbcThinTcpIo.java:223)}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.start(JdbcThinTcpIo.java:191)}}
{{ at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.<init>(JdbcThinConnection.java:146)}}
{{ ... 52 more}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message