Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-12454

Unable to start on IPv6-only node with local JMX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.10
    • None
    • None
    • Ubuntu Trusty, Oracle JDK 1.8.0_102-b14, IPv6-only host

    • Normal
    • 3.7

    Description

      A Cassandra node using default configuration is unable to start on IPv6-only machine with the following error message:

      ERROR [main] 2016-08-13 14:38:07,309 CassandraDaemon.java:731 - Bad URL path: :0:0:0:0:0:1/jndi/rmi://0:0:0:0:0:0:0:1:7199/jmxrmi
      

      The problem might be located in JMXServerUtils.createJMXServer() (I am not sure, because there is no stack trace in system.log):

      String urlTemplate = "service:jmx:rmi://%1$s/jndi/rmi://%1$s:%2$d/jmxrmi";
      ...
      String url = String.format(urlTemplate, (serverAddress != null ? serverAddress.getHostAddress() : "0.0.0.0"), port);
      

      IPv6 addresses must be surrounded by square brackets when passed to JMXServiceURL.
      Disabling LOCAL_JMX mode in cassandra-env.sh (and enabling JMX authentication) helps.

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            incubos Vadim Tsesko
            Sam Tunnicliffe
            Alex Petrov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: