Кассандра-стресс - ошибка NoHostAvailableException - PullRequest
0 голосов
/ 30 апреля 2019

Я хочу попробовать Cassandra-стресс на моем кластере, но я получил ошибку 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

У кого-нибудь есть предложения по моей проблеме?

Спасибо в advacne

...