Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save diegopacheco/f5228f853725a1d91dea9e7f8afbf1d6 to your computer and use it in GitHub Desktop.
Save diegopacheco/f5228f853725a1d91dea9e7f8afbf1d6 to your computer and use it in GitHub Desktop.

Enable repair by private ip

First open cassandra-env.sh

sudo vim /opt/reuters/apps/cassandra/conf/cassandra-env.sh

we need to change some configuration

First configure rmi server

JVM_OPTS = "$JVM_OPTS -Djava.rmi.server.hostname=your private ip"

Now add this var in the top of file

LOCAL_JMX=no

If you don't want use autentication, set it to false

JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

restart cassandra

and run

 /opt/cassandra/bin/nodetool -h MY_NODE_PRIVATE_IP repair -local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment