DataStax Help Center

nodetool fails with: Cannot resolve '127.0.0.1' : unknown host

Summary

When implementing a cluster in OpenStack, nodes end up resolving an incorrect name for the following environment variable on cassandra-env.sh:

java.rmi.server.hostname=<%= node[:fqdn] %>

Symptoms

nodetool fails as follows:

# nodetool status 
xss = -ea -javaagent:/usr/share/dse/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms8G -Xmx8G -Xmn800M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/cassandra/cassandra-1401908659-pid19089.hprof -Xss256k 
Cannot resolve '127.0.0.1': unknown host 

Solution

Set the following on cassandra-env.sh:

JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<public name>"

 

Then restart DSE service or Apache Cassandra

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    José Martínez Poblete

    From T10588

Powered by Zendesk