java.lang.Null pointer exception in Cassandra

19 Views Asked by At

While running nodetool info command, I'm getting Null pointerException and Gossip active also false. Can anyone check and let me know the resolution.

*cassandra-cassandra-vm0 conf$ nodetool info**
I**D                     : e5c47b97-b07f-4a20-a135-6187adeaa833
Gossip active          : false
Thrift active          : false
Native Transport active: false
Load                   : 1.04 GiB
-- StackTrace --
java.lang.NullPointerException
at org.apache.cassandra.metrics.TableMetrics$1.getValue(TableMetrics.java:181)
1

There are 1 best solutions below

0
Mário Tavares On

Gossip and Native Protocol down can be caused by multiple things. I would start by checking the following 2 scenarios:

  • The node was drained using nodetool drain - In this case, restarting it should resolve the issue.
  • The storage service stopped due to a disk or commit log failure - By default Cassandra stops the service but keeps the daemon running as per the default settings (stop) for disk_failure_policy and commit_failure_policy in cassandra.yaml. If this is the case you should be able to confirm it by looking for ERROR messages in the system.log archives. A restart may or not resolve the problem depending on the persistence of the failure cause.