Questions tagged [nodetool]

Command line tool for managing Cassandra clusters.

nodetool is a command that allows you to interact with a Cassandra cluster to manage it. You can use it to see the current status of nodes in the cluster, repair nodes, decommission nodes, and perform other maintenance tasks.

http://wiki.apache.org/cassandra/NodeTool

229 questions
0
votes
2 answers

Nodetool load and own stats

We are running 2 nodes in a cluster - replication factor 1. After writing a burst of data, we see the following via node tool status. Node 1 - load 22G (owns 48.2) Node 2 - load 17G (owns 51.8) As the payload size per record is exactly equal -…
IUnknown
  • 9,301
  • 15
  • 50
  • 76
0
votes
2 answers

Querying Cassandra for node statuses within Java

I'd like to query Cassandra for the information retrieved with a nodetool status command in a Java application. Is this possible or do I have to run nodetool and parse the output?
Benedict
  • 7
  • 2
0
votes
0 answers

Is there a way to use cassandra nodetool in c?

I've got Cassandra 3.0 and I'm trying to run nodetool inside a program in C (I'm using the cpp driver) but the only way I can think of is to use the system function to write in a file the result of the command : nodetool getendpoints etc., and then…
Elias
  • 1
0
votes
2 answers

Cassandra nodetool throws java exception

I am just started with Cassandra. Installed it to on my Ubuntu laptop. Had some problems with incopatibility between Cassandra version and JVM versions Looks like i fixed them by poking into config files. So Cassandra itself is running, i can run…
0
votes
1 answer

Cassandra backup and restore consistency

The scenario is as follows: I have 1 Cassandra node in which I have one keyspace, in which I have 2 tables. Let's call these tables A and B. Now I have a script that inserts data very quickly into these two tables in a batch statement. Table A has…
Rishabh Poddar
  • 919
  • 3
  • 9
  • 17
0
votes
1 answer

Access cassandra nodetool API progmatically

I need to provide similar utility functions such as is available through nodetool tablestats I've gone over their source code but didn't find a convenient solution to accessing it through code. Is there a library available for…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
2 answers

Not able to restore cassandra data from snapshot

We have a regular backup of our cluster and we store schema and snapshot back up on aws s3 on daily basis. Somehow we have lost all the data and while recovering the data from backup we are able to recover schema but while copying snapshots files to…
Uttkarsh Jain
  • 228
  • 1
  • 12
0
votes
1 answer

nodetool decommision is behaving strange

I tried removing a node from a cluster by issuing "nodetool decommission" and have seen netstats to find out how much data is being distributed to other nodes which is all fine. After the node has been decommissioned, I could see the status of few…
Avis
  • 496
  • 1
  • 5
  • 18
0
votes
0 answers

Cassandra native transport disabling itself

I have a bulk Python script uploading data to a Cassandra database. In a nutshell, it loops through a list of data rows and uploads each one with its timestamp to Cassandra. What I notice is that every so often the script will crash with an error…
user988066
  • 83
  • 1
  • 1
  • 5
0
votes
0 answers

show cassandra cluster space used, cluster read/write, cluster latency as shown by DataStax OpsCenter

How can I show cassandra cluster space used, cluster read/write, cluster latency as shown by DataStax OpsCenter? Table or Keyspace specific data is available through nodetool command but dont see any way to find the data related to cluster only.
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
0
votes
2 answers

Nodetool repair validate/preview is not executed

I have 2-nodes test cluster running on Windows machines. Replication factor: 2 Cassandra version: 3.10 By some reason, nodetool repair command with --validate or --preview flags is not executed at all, looks like parsing error. I'm not quite sure…
0
votes
1 answer

Why does nodetool refresh require a restart of Cassandra 2.2.8?

The documentation clearly states that nodetool refresh loads newly placed SSTables to the system without restart. Simple environment... 6 node cluster, 2 DCs, 3 nodes per DC, the keyspace in question is RF3 for each DC. Yes... I'm using C* 2.2.8,…
kalaolani
  • 323
  • 1
  • 16
0
votes
0 answers

Nodetool status shows java.lang.ClassCastException

I have a single node cassandra server. It has been working well for a long time until after a server restart I made yesterday. Now nodetool status gives me the following error error: null -- StackTrace -- java.lang.ClassCastException Cassandra…
Marko Sulamägi
  • 884
  • 1
  • 8
  • 14
0
votes
0 answers

Cassandra Node communication issue

I have two node cluster on AWS. Everything was working fine until yesterday. Today I came across a problem when I run nodetool status then the following error appears. Node1 thinks Node2 is down and vice versa. From ip2 ip2$ nodetool…
Avinash
  • 2,093
  • 4
  • 28
  • 41
0
votes
1 answer

Is there a any method to find the seed node list in a Cassandra Cluster

Is it possible to find the seed node ip in a cluster using nodetool or cqlsh other than having to look into the cassandra.yaml configuration file?