From aa58e07fceb6e425bbd21f10bed872d0daf67ecb Mon Sep 17 00:00:00 2001 From: Raghupathi Date: Wed, 21 Jul 2021 22:08:58 +0530 Subject: [PATCH] Update cassandra-env.sh (#2739) --- ansible/roles/cassandra/templates/cassandra-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/cassandra/templates/cassandra-env.sh b/ansible/roles/cassandra/templates/cassandra-env.sh index d2fd394599..a35ddc422d 100644 --- a/ansible/roles/cassandra/templates/cassandra-env.sh +++ b/ansible/roles/cassandra/templates/cassandra-env.sh @@ -234,7 +234,7 @@ fi # jmx: metrics and administration interface # # add this if you're having trouble connecting: -JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname={{hostvars[inventory_hostname]['ansible_default_ipv4']['address']}}" +JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname={{hostvars[inventory_hostname]['ansible_hostname']}}" # # see # https://blogs.oracle.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole