[英]Unable to start titan-server (Titan with Cassandra and Rexster)
I am trying to implement titan graph database on cassandra for one of my applications. 我正在尝试为我的应用程序之一在cassandra上实现titan图数据库 。 As per documentation, I have downloaded and extracted titan-cassandra-0.3.2
and when it trying to run titan.sh
with titan-server-rexster.xml
and titan-server-cassandra.properties
as arguments I am facing below error: 根据文档,我已经下载并提取了titan-cassandra-0.3.2
,当它尝试使用titan-server-rexster.xml
和titan-server-cassandra.properties
作为参数运行titan.sh
,我正面临以下错误:
In below stack trace it says "Cannot locate /opt/isv/app/pkgs/titan-cassandra-0.3.2/config/cassandra.yaml"
but I do have that file in that location. 在下面的堆栈跟踪中,它说"Cannot locate /opt/isv/app/pkgs/titan-cassandra-0.3.2/config/cassandra.yaml"
但是我确实在那个位置有该文件。 Could anyone please help? 谁能帮忙吗?
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.
A complete walkthrough for ENOMEM is here 此处提供了有关ENOMEM的完整演练
http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/troubleshooting/trblshootInsufficientResources_r.html also do not forget http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/troubleshooting/trblshootInsufficientResources_r.html也不要忘记
Basically edit /etc/security/limits.conf
file appending the following 基本上编辑/etc/security/limits.conf
文件,并附加以下内容
memlock unlimited
nofile 100000
nproc 32768
as unlimited
and then run sysctl -p
然后运行sysctl -p
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.