Skip to content

Commit

Permalink
Update cassandra-env.sh (#2739)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghupathiguduri authored Jul 21, 2021
1 parent b69ad4f commit aa58e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/cassandra/templates/cassandra-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa58e07

Please sign in to comment.