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

216 questions
23
votes
3 answers

how do i know if nodetool repair is finished

I have a 2 node apache cassandra (2.0.3) cluster with rep factor of 1. I change rep factor to 2 using the following command in cqlsh ALTER KEYSPACE "mykeyspace" WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 2 }; I then…
user3865568
  • 231
  • 1
  • 2
  • 4
17
votes
4 answers

How to know the size of a keyspace and column family in Cassandra?

Recently I've started working on Grails integration with Cassandra using the Java driver for cassandra(cassandra-driver-core-2.0.2). So I was curious to know how we can find out how much size our table is taking to store the data in cassandra DB. I…
JavaRookie
  • 215
  • 1
  • 2
  • 9
13
votes
6 answers

How to get the replication factor of C* cluster?

I cant find it in cassandra.yaml, maybe nodetool can get me the configured replication factor of my cluster? What is the default value of the replication factor?
Reshef
  • 2,150
  • 1
  • 17
  • 41
9
votes
1 answer

Cassandra Compaction vs Repair vs Cleanup

After posting a question and reading this and that articles, I still do not understand the relations between those three operations- Cassandra compaction tasks nodetool repair nodetool cleanup Is repair task can be processed while compaction…
Reshef
  • 2,150
  • 1
  • 17
  • 41
9
votes
1 answer

Clarifications about nodetool repair -pr

From the documentation: Using the nodetool repair -pr (–partitioner-range) option repairs only the primary range for that node, the other replicas for that range still have to perform the Merkle tree calculation, causing a validation compaction.…
Chris Lercher
  • 36,020
  • 19
  • 96
  • 128
8
votes
2 answers

Unable to gossip with any seeds but continuing since node is in its own seed list

To remove a node from 2 node cluster in AWS I ran nodetool removenode After this I was supposed to get my cluster back if I put all the cassandra.yaml and cassandra-rackdc.properties correctly. I did it but still, I am not able to get back…
Avinash
  • 1,739
  • 2
  • 19
  • 40
7
votes
1 answer

How to trace back a large partition of a column family in cassandra

Through ops-center and nodetool cfstats i was able to find that one of the partitions of a keyspace table is 560 Mb, but couldn't find out which partition is that. How can we trace which partition of the table is that big ??
user6288321
  • 345
  • 3
  • 13
6
votes
2 answers

Cassandra 2.2.3 repair exception

I'm running a Cassandra cluster with version 2.2.3. The cluster consists of 3 nodes now, two of them are seeds and one is a normal node. When I start repair on each node (command: nodetool repair -tr my_keyspace), I found the command was blocked on…
zhibo fu
  • 91
  • 3
6
votes
1 answer

What does "nodetool compact" do for DateTieredCompactionStrategy?

The documentation for nodetool compact says: This command starts the compaction process on tables that use the SizeTieredCompactionStrategy and DateTieredCompactionStrategy. You can specify a keyspace for compaction. But what it does for…
piotrwest
  • 1,942
  • 19
  • 32
6
votes
1 answer

Cassandra - avoid nodetool cleanup

If we have added new nodes to a C* ring, do we need to run "nodetool cleanup" to get rid of the data that has now been assigned elsewhere? Or is this going to happen anyway during normal compactions? During normal compactions, does C* remove data…
radumanolescu
  • 3,607
  • 1
  • 20
  • 30
6
votes
1 answer

Cassandra nodetool "compactionstats" meaning of displayed values

I cannot find documentation on the "compactionstats": While using nodetool compactionstats, what do the numerical values on the completed and total columns mean? My column family has a total data size of about 360 GB but my compaction status…
6
votes
1 answer

Cassandra - How to remove a dead node

Cassandra version 1.2.9. Five node cluster, but one of the nodes is down with hardware failure and repair/replacement ETA is unknown. I want to decommission/remove the down node (the notifications are cluttering all logs). nodetool removenode seems…
Sean Durity
  • 81
  • 1
  • 5
6
votes
1 answer

Error connecting to remote JMX agent! while starting Nodetool

I am trying to use nodetool against our Cassandra production database. But I am getting exception as soon as I try to start nodetool against Cassandra production cluster from my local machine. S:\Apache Cassandra\apache-cassandra-1.2.3\bin>nodetool…
arsenal
  • 20,650
  • 79
  • 217
  • 317
5
votes
2 answers

Does nodetool for cassandra only gather data for a single node or for the entire cluster?

I have a 19-node Cassandra cluster for our internal service. If I log into a node using nodetool and run commands like tablestats, etc, does that gather stats just for that particular node or for the entire cluster?
Ste
  • 113
  • 1
  • 7
5
votes
4 answers

Cassandra: Command Not Found

I am currently working on the Cassandra tutorials about data modeling. I cannot understand why whenever I try to run the cassandra service from the bin folder I receive the error: "Cassandra: command not found". The same happens if I try to run…
npof75
  • 51
  • 1
  • 2
1
2 3
14 15