Reputation: 71
Exception in thread "main" UnavailableException()
at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:16485) at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:916) at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:890) at WordCountSetup.main(Unknown Source)
Hi, I got this error while running a job in cassandra. can anyone help me how to get those class files. thanks in advance..
Upvotes: 7
Views: 4852
Reputation: 2978
Usually this error comes when there is some issue with the replication setting of your key space. Few possibilities
placement_strategy = 'NetworkTopologyStrategy' AND strategy_options={datacenter1:1};
to-> placement_strategy = 'SimpleStrategy' AND strategy_options={replication_factor:1};
may For 2 and 3 use
nodetool ring
command to find out how your ring is set up. Then accordingly update the keyspace definition.
Upvotes: 3