Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra Nodetool URISyntaxException: 'Malformed IPv6 address at index 7'

Cassandra nodetool throws an error after updating OpenJDK

nodetool status
nodetool: Failed to connect to '127.0.0.1:7199' - URISyntaxException: 'Malformed IPv6 address at index 7: rmi://[127.0.0.1]:7199'.

This also affects the current official Docker-Hub Image https://hub.docker.com/_/cassandra version 3.11.12

How can I fix this error?

like image 387
Florian Avatar asked Dec 01 '25 04:12

Florian


2 Answers

There seems to be an issue with "improved" IPv6 address parsing in the latest jdk update.
The workaround would be to use the IPv6 notation of localhost

nodetool -h ::FFFF:127.0.0.1 status
like image 92
Florian Avatar answered Dec 04 '25 04:12

Florian


You can upgrade to Apache Cassandra 3.11.13 or use this command:

nodetool -Dcom.sun.jndi.rmiURLParsing=legacy status

Another way is to add this -Dcom.sun.jndi.rmiURLParsing=legacy to JAVA_TOOL_OPTIONS environment variable.

like image 45
Wawrzyniec Pruski Avatar answered Dec 04 '25 04:12

Wawrzyniec Pruski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!