我正在设置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
amazonmcs公开了端口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不可用)。我做错什么了吗?
暂无答案!
目前还没有任何答案,快来回答吧!