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
2
votes
1 answer

Nodetool output when having a cassandra cluster

I have a cassandra cluster (two nodes) already set up. When I use nodetool to get the tablestats I get different values depending on where I use nodetool. Is there a way to get an output that give a representation of the entire cluster? For example,…
2
votes
1 answer

what does nodetool garbagecollect is actually doing

I'm trying to free some disk space in C*. I've deleted many rows which created many tombstones. I'm running nodetool garbagecollect and was wondering what this tool is doing behind the scens. I've read that it deletes the actual data that the…
yaarix
  • 490
  • 7
  • 18
2
votes
2 answers

Does node tool repair command repair all the nodes in cluster or repair single node on which command is executed?

As per the datastrax documentation (Latest version) for nodetool repair All nodetool repair command options are optional. When optional command arguments are not specified, the defaults are: Full repair runs on all keyspaces and all tables. Repair…
2
votes
2 answers

Cassandra Table Count Timeout

I try to get number of rows in a table. But cassandra turns timeout for this query select count(*) from events ; I think that my tables is too big so if ı give a timeout value for my query, it turns always timeout cqlsh…
user10651098
  • 75
  • 1
  • 7
2
votes
1 answer

Cassandra nodes are not equal

We have two nodes. Node1 was down for a long time. During this time Node2 raised 1 TB capacity when Node1 has 100 GB. We tried to repair Node1 with nodetool repair but nothing changed. After that we started nodetool repair in Node2, it took 5 days…
Ekrem Gurdal
  • 1,118
  • 13
  • 14
2
votes
1 answer

How can i run and return the cassandra nodetool command and its output

How can i run and return the cassandra nodetool command and its output using Java. I checked this SO question but there is no clarity about how to do it exactly.
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
2
votes
1 answer

Is there any other way to get a cassandra hostid other than using nodetool status?

I can list complete cluster information using nodetool status which outputs something like this. Datacenter: bi ============== Status=Up/Down|/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID …
2
votes
0 answers

script python using nodetool for health check

I am looking for a nodes health check python script and I found the following script from bottle import route, run import glob import json import os import subprocess import time import socket # This method is used to check the status of health…
akram1rekik
  • 153
  • 1
  • 1
  • 7
2
votes
0 answers

Getting java.io.IOException: JMX connection closed. when manually ran repair on pratition range of a keyspace using nodetool

[2016-07-06 17:28:51,593] Lost notification. You should check server log for repair status of keyspace operations Exception occurred during clean-up. java.lang.reflect.UndeclaredThrowableException error: JMX connection closed. You should check…
user6288321
  • 365
  • 4
  • 14
2
votes
0 answers

In multidc cassandra cluster dc's showing eachother as DN

I have 8 nodes in my cassandra cluster which has two datacenters with 4 nodes each. I am using cassandra version 2.0.9 in all nodes. For the last 10 days there are some connection disturbances occurred. But it had resolved immediately. But nodes in…
2
votes
0 answers

Cassandra compaction tasks number keep growing

I`m using Cassandra dsc 2.1.5 with 3 nodes, and the following table description: cqlsh> DESCRIBE TABLE mykeyspace.mytable; CREATE TABLE mykeyspace.mytable ( a text, b text, c timestamp, d timestamp, e text, PRIMARY KEY ((a, b), c) ) WITH…
user2552806
2
votes
0 answers

ccm cannot connect to nodetool, it throws connection refused

I am using ccm with cassandra 2.0.9. I have 8 nodes virtually in ccm. when i try to connect to node1 status it shows following error rishi@rishi:~/work/ccm$ ccm node1 status Traceback (most recent call last): File "/usr/local/bin/ccm", line 5, in…
2
votes
3 answers

error on /127.0.0.1 connection (com.datastax.driver.core.TransportException: [/127.0.0.1] Unexpected exception triggered), no more host to try

I am trying to connect Cassandra with Java under Windows Environment. Following are application/OS/lib version. -Windows 7 -Java 7 -Cassandra 2.1.12 Code: Cluster clst; Session ses; clst=…
Altmish-E-Azam
  • 1,561
  • 1
  • 13
  • 24
2
votes
1 answer

Cassandra: Finding partition keys

We are currently testing Cassandra with the following table schema: CREATE TABLE coreglead_v2.stats_by_site_user ( d_tally text, -- ex.: '2016-01', '2016-02', etc.. site_id int, d_date timestamp, site_user_id int, accepted…
joao
  • 292
  • 2
  • 7
2
votes
3 answers

Apache Cassandra: Nodetool Stats Which shows Memtable Flush Frequency

Currently I am debugging performance issue with Apache Cassandra. when Memtable for the column family is filled, it is queued to be flushed to SSTable. This flushing happens often when you perform massive writes. When this queue is filled up,…
user_1357
  • 7,766
  • 13
  • 63
  • 106