Forked from marceloserpa/cassandra-config-repair-private-ip.md
Created
August 20, 2018 22:21
-
-
Save diegopacheco/f5228f853725a1d91dea9e7f8afbf1d6 to your computer and use it in GitHub Desktop.
Revisions
-
marceloserpa created this gist
Aug 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ ## 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 ```