节点从cassandra CCM启动问题(超时等待dirty_pid文件)

时间:2014-09-02 12:37:57

标签: cassandra

我对卡桑德拉很新。我无法使用CCM在本地启动节点。我收到了这个错误。任何人都对这个错误有所了解。

D:\ccm>python ccm status
node1: DOWN (Not initialized)
node3: DOWN (Not initialized)
node2: DOWN (Not initialized)
D:\ccm>python ccm start
ERROR: Problem starting node1 (Timed out waiting for dirty_pid file.)
Traceback (most recent call last):
  File "ccm", line 72, in <module>
    cmd.run()
  File "D:\ccm\ccmlib\cmds\cluster_cmds.py", line 458, in run
    profile_options=profile_options) is None:
  File "D:\ccm\ccmlib\cluster.py", line 260, in start
    p = node.start(update_pid=False, jvm_args=jvm_args, profile_options=profile_
options)
  File "D:\ccm\ccmlib\node.py", line 459, in start
    self.__clean_win_pid()
  File "D:\ccm\ccmlib\node.py", line 1183, in __clean_win_pid
    raise Exception('Error while parsing <node>/dirty_pid.tmp in path: ' + self.
get_path())
Exception: Error while parsing <node>/dirty_pid.tmp in path: C:\Users\Ram\.ccm\cluster2\node1

D:\ccm>

请帮助解决这个问题。

提前致谢

1 个答案:

答案 0 :(得分:0)

请看一下使用ccm跟踪一致性更改的示例:http://www.datastax.com/documentation/cql/3.1/cql/cql_using/useTracingSetup.html

如果您没有使用Cassandra源代码,则该过程略有不同。请参阅ccm README或告诉我,我将向您发送详细信息。

不要忘记在本地ip上设置别名,例如:

$ sudo ifconfig lo0 alias 127.0.0.2 up
$ sudo ifconfig lo0 alias 127.0.0.3 up
$ sudo ifconfig lo0 alias 127.0.0.4 up
$ sudo ifconfig lo0 alias 127.0.0.5 up