【发布时间】:2014-04-14 00:30:53
【问题描述】:
当我尝试在 ubuntu 12.04 上启动 cassandra(通过 Datastax 的 dsc20 包安装)作为服务时:
$ sudo service cassandra start
它说
*无法访问 Cassandra 的 pidfile
& 日志中没有其他消息或任何内容。
但是当我尝试以 root 用户身份运行时(sudo cassandra -f),它可以正常工作并且 cassandra 已启动。在尝试调试时,我发现在尝试以非 root 用户身份运行 时,我收到了以下消息:
ERROR 17:48:08,432 Exception encountered during startup
java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible.
..
java.io.FileNotFoundException: /var/log/cassandra/system.log (Permission denied)
..
java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible.
包装有问题吗?包没有正确安装/配置??
【问题讨论】:
-
你使用的是什么版本的 DSE(datastax-enterprise 标签),还是这个纯 Cassandra?
标签: cassandra datastax-enterprise datastax