Amber
Amber

Reputation: 11

Snaphot command in cassandra

A quick question. When we are trying to take snapshot of our keyspace it is throwing an exception as Read Timeout. Below is the command we are using:-

./nodetool -h 172.16.100.52  -p 9042 snapshot test;

"test" is our keyspace which has some tables and we were trying to take a backup through the snapshot command. Below is the error we are receiving after a minute :-

nodetool: Failed to connect to '172.16.100.52:9042' - SocketTimeoutException: 'Read timed out'.

Is there any parameter in the yaml file or env file which you can think of which might help?

Upvotes: 1

Views: 186

Answers (2)

I have a similar issue, looks like you are using local JMX connection. Check cassandra-env.sh.

Upvotes: 0

Aaron
Aaron

Reputation: 57748

Try it without specifying your port

./nodetool -h 172.16.100.52 snapshot test

9042 is the native binary protocol port, so that's not going to work. 7199 is the JMX port, which is what nodetool is expecting here. In fact, you shouldn't need to specify that at all.

If you insist on specifying a port, try 7199 (unless you have altered the JMX port).

./nodetool -h 172.16.100.52 -p 7199 snapshot test

Upvotes: 1

Related Questions