连接到远程jmx代理时出错!启动nodetool时

sirbozc5  于 2021-06-15  发布在  Cassandra
关注(0)|答案(1)|浏览(435)

我想用 nodetool 我们的Cassandra产品数据库。但是,当我试图从本地机器针对cassandra生产集群启动nodetool时,我就遇到了一个异常。

  1. S:\Apache Cassandra\apache-cassandra-1.2.3\bin>nodetool -h pdb.vip.phx.host.com compactionstats
  2. Starting NodeTool
  3. Error connecting to remote JMX agent!
  4. java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error duri
  5. ng JRMP connection establishment; nested exception is:
  6. java.net.SocketTimeoutException: Read timed out]
  7. at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
  8. at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
  9. at org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:145)
  10. at org.apache.cassandra.tools.NodeProbe.<init>(NodeProbe.java:115)
  11. at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:966)
  12. Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exce
  13. ption is:
  14. java.net.SocketTimeoutException: Read timed out]
  15. at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
  16. at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
  17. at javax.naming.InitialContext.lookup(Unknown Source)
  18. at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
  19. at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)
  20. ... 5 more
  21. Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
  22. java.net.SocketTimeoutException: Read timed out
  23. at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
  24. at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
  25. at sun.rmi.server.UnicastRef.newCall(Unknown Source)
  26. at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
  27. ... 10 more
  28. Caused by: java.net.SocketTimeoutException: Read timed out
  29. at java.net.SocketInputStream.socketRead0(Native Method)
  30. at java.net.SocketInputStream.read(Unknown Source)
  31. at java.io.BufferedInputStream.fill(Unknown Source)
  32. at java.io.BufferedInputStream.read(Unknown Source)
  33. at java.io.DataInputStream.readByte(Unknown Source)
  34. ... 14 more

谁能给我一些想法,为什么我会看到这个例外?任何帮助都将不胜感激。

k75qkfdt

k75qkfdt1#

“使用jvm选项'-djava.rmi.server.hostname=$ip'(其中$ip是要从远程计算机访问的接口的ip地址)。”
发件人:wiki.apache.org/cassandra/jmxgotchas

相关问题