Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save diegopacheco/f5228f853725a1d91dea9e7f8afbf1d6 to your computer and use it in GitHub Desktop.

Revisions

  1. @marceloserpa marceloserpa created this gist Aug 20, 2018.
    32 changes: 32 additions & 0 deletions cassandra-config-repair-private-ip.md
    Original 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
    ```