Hi,
I have just started using hector, and was going through
ExampleClient.java
http://github.com/rantav/hector/blob/master/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java
I have a 2 node cluster with RF=2
inserts and reads are working fine with both the nodes up
but when I put one node down, it says -
Exception in thread "main"
org.apache.thrift.transport.TTransportException: Cannot write to null
outputStream
at
org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:
137)
at
org.apache.thrift.protocol.TBinaryProtocol.writeI32(TBinaryProtocol.java:
152)
at
org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBinaryProtocol.java:
80)
at org.apache.cassandra.thrift.Cassandra
$Client.send_get(Cassandra.java:324)
at org.apache.cassandra.thrift.Cassandra$Client.get(Cassandra.java:
318)
at me.prettyprint.cassandra.service.KeyspaceImpl
$16.execute(KeyspaceImpl.java:529)
at me.prettyprint.cassandra.service.KeyspaceImpl
$16.execute(KeyspaceImpl.java:523)
at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(FailoverOperator.java:
354)
at
me.prettyprint.cassandra.service.FailoverOperator.operateSingleIteration(FailoverOperator.java:
171)
at
me.prettyprint.cassandra.service.FailoverOperator.operate(FailoverOperator.java:
84)
at
me.prettyprint.cassandra.service.KeyspaceImpl.operateWithFailover(KeyspaceImpl.java:
151)
at
me.prettyprint.cassandra.service.KeyspaceImpl.getColumn(KeyspaceImpl.java:
538)
at ExampleClient.main(ExampleClient.java:38)
Also, when I read with both the nodes up, it shows warnings-
log4j:WARN No appenders could be found for logger
(me.prettyprint.cassandra.service.CassandraClientPoolFactory).
log4j:WARN Please initialize the log4j system properly
Please let me know if I am missing something
Thanks