Cassandra datastax java driver ,can not connect to server "No handler set for stream" -
if create new project .
cluster = cluster.builder().addcontactpoint("127.0.0.1").build();
this code works.
but if take jars project , migrate jars own project .the code above doesn't work , says:
13/07/01 16:27:16 error core.connection: [/127.0.0.1-1] no handler set stream 1 (this bug, either of driver or of cassandra, should report it) com.datastax.driver.core.exceptions.nohostavailableexception: host(s) tried query failed (tried: [/127.0.0.1])
what version of cassandra running? have enabled native protocol in cassandra.yaml?
in cassandra 1.2.0-1.2.4 native protocol disabled default, in 1.2.5+ it's on default.
see https://github.com/apache/cassandra/blob/cassandra-1.2.5/conf/cassandra.yaml#l335
that's common reason i've seen not being able connect driver.
Comments
Post a Comment