3

我正在尝试设置 JanusGraph 以访问 Amazon MCS。基础设施都允许访问,但我在配置步骤中遇到了困难。

这是我设置的配置janusgraph-cql.properties

storage.backend=cql
storage.hostname=cassandra.ap-southeast-1.amazonaws.com
storage.port=9142
storage.username=${CASSANDRA_USERNAME}
storage.password=${CASSANDRA_PASSWORD}
storage.cql.ssl.truststore.location=${CASSANDRA_TRUSTSTORE_LOCATION}
storage.cql.ssl.truststore.password=${CASSANDRA_TRUSTSTORE_PASSWORD}
storage.cql.ssl.enabled=true

Amazon MCS 公开端口 9142,而不是 9402。

当我开始时gremlin-server.sh,我可以看到以下输出:

2897 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.141:9042 added
2898 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.117.140:9042 added
2898 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.117.134:9042 added
2898 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.137:9042 added
2898 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.182:9042 added
2899 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host cassandra.ap-southeast-1.amazonaws.com/13.251.117.0:9142 added
2899 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.84:9042 added
2899 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.117.219:9042 added
2899 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.144:9042 added
2899 [main] INFO  com.datastax.driver.core.Cluster  - New Cassandra host /13.251.116.1:9042 added

尽管我已将端口设置为 9142,但仍在添加具有端口 9042 的新 Cassandra 主机,导致进程失败(因为 9042 不可用)。有什么我做错了吗?

4

0 回答 0