Cassandra 无法找到 storage-conf.xml
我试图在 FreeBSD 上使用 /usr/local/share/cassandra/bin/cassandra 启动 Cassandra。 但它给了我以下错误消息,知道如何解决这个问题吗?任何建议将不胜感激。谢谢。
INFO 21:16:38,666 未找到 JNA。本机方法将被禁用。 ERROR 21:16:38,684 启动期间遇到异常。 java.lang.ExceptionInInitializerError 在 org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73) 在 org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224) 引起原因:java.lang.RuntimeException:java.lang.RuntimeException:无法通过 storage-config 系统属性或类路径查找找到 storage-conf.xml。 在 org.apache.cassandra.config.DatabaseDescriptor。(DatabaseDescriptor.java:584) ... 2 更多 原因:java.lang.RuntimeException:无法通过 storage-config 系统属性或类路径查找找到 storage-conf.xml。 在 org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180) 在 org.apache.cassandra.config.DatabaseDescriptor。(DatabaseDescriptor.java:187) ... 2 更多 启动时遇到异常。 java.lang.ExceptionInInitializerError 在 org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73) 在 org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224) 引起原因:java.lang.RuntimeException:java.lang.RuntimeException:无法通过 storage-config 系统属性或类路径查找找到 storage-conf.xml。 在 org.apache.cassandra.config.DatabaseDescriptor。(DatabaseDescriptor.java:584) ... 2 更多 原因:java.lang.RuntimeException:无法通过 storage-config 系统属性或类路径查找找到 storage-conf.xml。 在 org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180) 在 org.apache.cassandra.config.DatabaseDescriptor。(DatabaseDescriptor.java:187) ... 2 更多
I was trying to start Cassandra on FreeBSD with /usr/local/share/cassandra/bin/cassandra.
But it gives me the following error messages, any idea how to get around the problem? Any suggestions will be GREATLY appreciated. Thank you.
INFO 21:16:38,666 JNA not found. Native methods will be disabled.
ERROR 21:16:38,684 Exception encountered during startup.
java.lang.ExceptionInInitializerError
at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:584)
... 2 more
Caused by: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180)
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:187)
... 2 more
Exception encountered during startup.
java.lang.ExceptionInInitializerError
at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:584)
... 2 more
Caused by: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180)
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:187)
... 2 more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是卡桑德拉 0.6.x 吗?您可能想升级到最新的cassandra,0.7.4
该错误是因为Cassandra无法找到storage-conf.xml。此文件应位于您的 cassandra conf 目录中,请参阅 http://wiki.apache.org/cassandra/StorageConfiguration< /a>
如果升级到 cassandra 0.7.x,则需要 cassandra.yaml 文件。
Is this cassandra 0.6.x? You probably want to upgrade to the latest cassandra, 0.7.4
The error is because Cassandra can't locate storage-conf.xml. This file should be in your cassandra conf directory, see http://wiki.apache.org/cassandra/StorageConfiguration
If you upgrade to cassandra 0.7.x, you will need a cassandra.yaml file instead.