Cassandra 在windows server上配置双节点群集时,cqlsh未连接

Cassandra 在windows server上配置双节点群集时,cqlsh未连接,cassandra,cqlsh,Cassandra,Cqlsh,我试图在windows r2 2008中使用cassandra配置一个两节点群集,因此我在一台服务器10.xxx.0.1,10.xxx.0.2中安装了cassandra社区版本,然后我停止了服务,并编辑了conf文件夹中的configuraton.yaml文件 这些变化是: 群集名称 注释了num_标记 以首字母_token的形式提供代币, 种子为10.xxx.0.1,10.xxx.0.2, 侦听地址是它们各自的ip地址,分别为10.xxx.0.1,10.xxx.0.2, rpc_地址与侦听_地

我试图在windows r2 2008中使用cassandra配置一个两节点群集,因此我在一台服务器10.xxx.0.1,10.xxx.0.2中安装了cassandra社区版本,然后我停止了服务,并编辑了conf文件夹中的configuraton.yaml文件

这些变化是:

群集名称 注释了num_标记 以首字母_token的形式提供代币, 种子为10.xxx.0.1,10.xxx.0.2, 侦听地址是它们各自的ip地址,分别为10.xxx.0.1,10.xxx.0.2, rpc_地址与侦听_地址相同, 作为流言蜚语的告密者 我还将cassandra rackdc.properties文件更改为dc=DC1 rack=RAC1。 并更改了cassandra env文件-未注释:JVM_OPTS=$JVM_OPTS-Djava.rmi.server.hostname=10.xxx.0.1

然后我保存并启动了该服务,运行nodetool status并获得

数据中心:DC1 并打开了cqlsh,但它没有连接。以下是错误:

ERROR [Initialization] 2015-10-12 17:10:21,353 Error connecting via JMX: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
    java.net.ConnectException: Connection refused: connect]
   INFO [main] 2015-10-12 17:10:24,612 Reconnecting to a backup OpsCenter instance
   INFO [main] 2015-10-12 17:10:24,615 SSL communication is disabled
   INFO [main] 2015-10-12 17:10:24,615 Creating stomp connection to 127.0.0.1:61620
   INFO [main] 2015-10-12 17:10:24,628 Starting Jetty server: {:join? false, :ssl? false, :host nil, :port 61621}
   INFO [Initialization] 2015-10-12 17:10:24,632 Sleeping for 2s before trying to determine IP over JMX again
   INFO [StompConnection receiver] 2015-10-12 17:10:24,640 Reconnecting in 0s.

  INFO [main] 2015-10-12 18:25:56,347 Waiting for the config from OpsCenter
   INFO [main] 2015-10-12 18:25:56,349 Attempting to determine Cassandra's broadcast address through JMX
   INFO [main] 2015-10-12 18:25:56,350 Starting Stomp
   INFO [main] 2015-10-12 18:25:56,350 Starting up agent communcation with OpsCenter.
   INFO [Initialization] 2015-10-12 18:25:56,356 New JMX connection (127.0.0.1:7199)
  ERROR [Initialization] 2015-10-12 18:25:57,652 Error connecting via JMX: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
    java.net.ConnectException: Connection refused: connect]
   INFO [main] 2015-10-12 18:26:00,768 Reconnecting to a backup OpsCenter instance
   INFO [main] 2015-10-12 18:26:00,770 SSL communication is disabled
   INFO [main] 2015-10-12 18:26:00,770 Creating stomp connection to 127.0.0.1:61620
   INFO [main] 2015-10-12 18:26:00,779 Starting Jetty server: {:join? false, :ssl? false, :host nil, :port 61621}
   INFO [Initialization] 2015-10-12 18:26:00,782 Sleeping for 2s before trying to determine IP over JMX again
   INFO [StompConnection receiver] 2015-10-12 18:26:00,945 Reconnecting in 0s.
   INFO [StompConnection receiver] 2015-10-12 18:26:01,136 Connected to 127.0.0.1:61620

你试过cqlsh 10.xxx.0.1吗?谢谢,我在命令提示符下试过,它连接到了cqlsh
ERROR [Initialization] 2015-10-12 17:10:21,353 Error connecting via JMX: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
    java.net.ConnectException: Connection refused: connect]
   INFO [main] 2015-10-12 17:10:24,612 Reconnecting to a backup OpsCenter instance
   INFO [main] 2015-10-12 17:10:24,615 SSL communication is disabled
   INFO [main] 2015-10-12 17:10:24,615 Creating stomp connection to 127.0.0.1:61620
   INFO [main] 2015-10-12 17:10:24,628 Starting Jetty server: {:join? false, :ssl? false, :host nil, :port 61621}
   INFO [Initialization] 2015-10-12 17:10:24,632 Sleeping for 2s before trying to determine IP over JMX again
   INFO [StompConnection receiver] 2015-10-12 17:10:24,640 Reconnecting in 0s.

  INFO [main] 2015-10-12 18:25:56,347 Waiting for the config from OpsCenter
   INFO [main] 2015-10-12 18:25:56,349 Attempting to determine Cassandra's broadcast address through JMX
   INFO [main] 2015-10-12 18:25:56,350 Starting Stomp
   INFO [main] 2015-10-12 18:25:56,350 Starting up agent communcation with OpsCenter.
   INFO [Initialization] 2015-10-12 18:25:56,356 New JMX connection (127.0.0.1:7199)
  ERROR [Initialization] 2015-10-12 18:25:57,652 Error connecting via JMX: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
    java.net.ConnectException: Connection refused: connect]
   INFO [main] 2015-10-12 18:26:00,768 Reconnecting to a backup OpsCenter instance
   INFO [main] 2015-10-12 18:26:00,770 SSL communication is disabled
   INFO [main] 2015-10-12 18:26:00,770 Creating stomp connection to 127.0.0.1:61620
   INFO [main] 2015-10-12 18:26:00,779 Starting Jetty server: {:join? false, :ssl? false, :host nil, :port 61621}
   INFO [Initialization] 2015-10-12 18:26:00,782 Sleeping for 2s before trying to determine IP over JMX again
   INFO [StompConnection receiver] 2015-10-12 18:26:00,945 Reconnecting in 0s.
   INFO [StompConnection receiver] 2015-10-12 18:26:01,136 Connected to 127.0.0.1:61620