Failed to connect to ::1: No route to host

classic Classic list List threaded Threaded
1 message Options
oio14644 oio14644
Reply | Threaded
Open this post in threaded view
|

Failed to connect to ::1: No route to host

To whom it may concern,
I followed this step to install jolokia and make cassandra config changes and then restart cassandra
sudo mkdir /opt/jolokia
sudo cd /opt/jolokia
sudo wget https://github.com/rhuss/jolokia/releases/download/v1.6.0/jolokia-1.6.0-bin.tar.gz
sudo tar -xf jolokia-1.6.0-bin.tar.gz
sudo echo 'JVM_OPTS="$JVM_OPTS -javaagent:/opt/jolokia/jolokia-1.6.0/agents/jolokia-jvm.jar"' >>  /srv/cassandra/conf/cassandra-env.sh

But when I run curl http://localhost:8778/jolokia/,
it has this error,
curl: (7) Failed to connect to ::1: No route to host

The java version is 1.8.0_181
The cassandra version 2.2.8

Will the java version or cassandra version affect it?

Thanks,

Wei