使用SSL在群集外部运行cassandra-stress时出现“通道已关闭”错误

时间:2019-11-25 21:10:59

标签: java ssl cassandra datastax cassandra-stress-tool

我试图在ssl集群外运行“ cassandra-stress”。该集群由在私有云中运行的3个Linux VM组成。从本地运行的cassandra-stress命令可以访问每个VM。在相同的环境中,使用相同的信任库,我的本地工作站上的CQL和DataStax Studio可以正常运行。

我的运行命令如下:

./ cassandra-stress写-node 10.160.x.y1,10.160.x.y2,10.160.x.y3 -transport truststore = / Library / Java / JavaVirtualMachines / jdk1.8.0_201。 jdk / Contents / Home / jre / lib / security / cacerts truststore-password = {trustpass} -mode native cql3 user = {user} password = pass -port native = 9042 thrift = 9160 JMX = 9042 >

每次在命令上方运行时都会得到以下错误消息:

java.lang.RuntimeException: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /10.160.109.65:9042 (com.datastax.driver.core.exceptions.TransportException: [/10.160.x.y2:9042] Channel has been closed))
    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: /10.160.x.y2:9042 (com.datastax.driver.core.exceptions.TransportException: [/10.160.109.65:9042] Channel has been closed))
    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:177)
    at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:211)
    ... 6 more

不确定我缺少什么,或者在我们所处的环境中完全有可能做到这一点。任何帮助将不胜感激。

0 个答案:

没有答案