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..
UnavailableException means "too many replicas are down."
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With