2016-10-19 2 views
1

나는 cassandra를 설치하고 작업했습니다. 그것은 제대로 작동했습니다. 문제가 해제 될 수 있도록 지금, 그것은 내 서버 주소를 변경하는 방법cassandra가 서버에 연결되지 않는 이유는 무엇입니까?

localhost/<> is in use by another process. Change listen_address:storage_port in cassandra.yaml to values that do not conflict with other services Fatal configuration error; unable to start server. See log for stacktrace. INFO 09:17:02 Announcing shutdown INFO 09:17:02 Compacted 4 sstables to [./../data/data/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-33,]. 6,485 bytes to 5,751 (~88% of original) in 223ms = 0.024595MB/s. 4 total partitions merged to 1. Partition merge counts were {4:1, } INFO 09:17:04 Waiting for messaging service to quiesce [email protected]:~/dev/Cassandra/apache-cassandra-2.1.7/bin$ ./cqlsh Connection error: ('Unable to connect to any servers', {'127.0.0.1': OperationTimedOut('errors=None, last_host=None',)})

된 직후 보여주고있다?

답변

1

로컬 호스트는 이미 사용 중입니다. 다음 steps-

$ jps

당신은 실행중인 일부 프로세스를 참조하십시오. 예를 들어 :

9107 Jps 1112 CassandraDaemon

그런 다음 jps를 실행 한 후 참조 프로세스 ID로 CassandraDaemon 프로세스를 종료. 내 예에서는 여기서 에 대한 프로세스 ID는 1112입니다.

$ kill -9 1112

그런 다음 당신은 CassandraDaemon은 더 이상 사용할 수 없습니다 볼 것 while-

$ jps

후 다시 프로세스를 확인합니다.

9170 Jps

는 그런 다음 saved_cachescommilog 및 시작 cassandra 다시 제거합니다. cassandra.yaml 에서 :

  1. 변화 씨 : 어떤 개인 IP 또는 공인 IP로 로컬 호스트에서 listen_address을 변경하려는 경우

    , 당신은 다음과 같이 변경해야

  2. 변경 수신 대기 주소 : at cassandra.yaml
  3. 변경 rpc_address : at c
  4. 이 출력 전에 cassandra-env.sh
+0

JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<place_your_ip_here>"을 설정 assandra.yaml, 나는 Ctrl + Z 종료를 사용하여 실행중인 카산드라을 중단했다. 결과에 대한 이유가 있습니까? – Madhuri

+0

카스 산드라 또는 노드 다운 문제로 인해 문제가 발생할 때마다 /dev/Cassandra/apache-cassandra-2.1.7/logs/system.log에서 로그를 확인할 수 있습니다. –

관련 문제