0

我正在尝试为我的一个应用程序在 cassandra 上实现 Titan 图形数据库。根据文档,我已经下载并解压缩titan-cassandra-0.3.2,当它尝试titan.sh使用titan-server-rexster.xmltitan-server-cassandra.properties作为参数运行时,我面临以下错误:

在下面的堆栈跟踪中它说"Cannot locate /opt/isv/app/pkgs/titan-cassandra-0.3.2/config/cassandra.yaml",但我确实在那个位置有那个文件。有人可以帮忙吗?

WARN  org.apache.cassandra.utils.CLibrary  - Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out, especially with mmapped I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra as root.
72   [pool-1-thread-1] ERROR org.apache.cassandra.config.DatabaseDescriptor  - Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Cannot locate /opt/isv/app/pkgs/titan-cassandra-0.3.2/config/cassandra.yaml
        at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigURL(DatabaseDescriptor.java:113)
        at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:130)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:122)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:150)
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:366)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:409)
        at com.thinkaurelius.titan.diskstorage.cassandra.embedded.CassandraDaemonWrapper$CassandraStarter.run(CassandraDaemonWrapper.java:64)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Cannot locate /opt/isv/app/pkgs/titan-cassandra-0.3.2/config/cassandra.yaml
Fatal configuration error; unable to start server.  See log for stacktrace.
4

1 回答 1

0

ENOMEM 的完整演练在这里

http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/troubleshooting/trblshootInsufficientResources_r.html也不要忘记

基本上编辑/etc/security/limits.conf附加以下内容的文件

memlock unlimited
nofile 100000
nproc 32768
as unlimited

然后运行sysctl -p

于 2017-01-11T21:20:55.933 回答