有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Cassandra JMX java。rmi。服务器ExportException:端口已在使用:7199

我们的卡桑德拉2.2集群(在CentOS 7上)运行良好,除了一件事。只要我把LOCAL_JMX=no放进卡桑德拉环境。sh,卡桑德拉未能启动,出现以下错误:

Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
    java.net.BindException: Address already in use

相关配置如下所示:

  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl=false"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=true"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password"
  JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.keyStore=/etc/pki/cassandra/keys/.keystore"
  JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.keyStorePassword=password1"
  JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.trustStore=/etc/pki/cassandra/certs/.truststore"
  JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.trustStorePassword=password2"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl.need.client.auth=true"
  JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.registry.ssl=true"

我确实验证了端口上是否没有运行任何东西,如果我更改了端口,结果也是一样的。 有帮助的是为jmxremote.portjmxremote.rmi.port使用不同的端口,尽管这不符合手册中的建议。不幸的是,即使是我也无法使用nodetool获取NoSuchObjectException: 'no such object in table'异常

有什么想法吗?非常感谢


共 (1) 个答案

  1. # 1 楼答案

    卡桑德拉还与VMware存在冲突。停止VMware服务后,Cassandra正确启动