我想在集群上尝试Cassandra-stress,但出现错误NohostAvailable。
我尝试了许多命令,但是没有一个起作用:
cassandra-stress write n=1 cl=one -mode native cql3 -log file=create_schema.log -node XX.XXX.XXX.XX -port native=1521
错误
java.lang.RuntimeException: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /XX.XXX.XXX.XX:1521 (com.datastax.driver.core.exceptions.TransportException: [/XX.XXX.XXX.XX:1521] Cannot connect))
at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:220)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesNative(SettingsSchema.java:79)
at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:69)
at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:228)
at org.apache.cassandra.stress.StressAction.run(StressAction.java:57)
at org.apache.cassandra.stress.Stress.run(Stress.java:143)
at org.apache.cassandra.stress.Stress.main(Stress.java:62)
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /XX.XXX.XXX.XX:1521 (com.datastax.driver.core.exceptions.TransportException: [/XX.XXX.XXX.XX:1521] Cannot connect))
at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:223)
at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:70)
at com.datastax.driver.core.Cluster$Manager.negotiateProtocolVersionAndConnect(Cluster.java:1591)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1509)
at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:390)
at org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:175)
at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:211)
... 6 more
有人对我的问题有建议吗?
感谢您的光临