尽管我将大小从Xss:168k 更改为 256k并且现在我在启动 cassandra 时遇到了这个错误,尽管我已经完成了现有的解决方案,但那是说比较cassandra.yaml的现有文件和复制粘贴它们之间的差异,但对我不起作用,我正在研究ubntu-13.0.4得到一个错误ExceptionInInitializerError , HeapDumpOnOutOfMemoryError
cassandra -f
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1024M -Xmx1024M -Xmn256M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Couldn't figure out log4j configuration: log4j- server.properties
at org.apache.cassandra.service.CassandraDaemon.initLog4j(CassandraDaemon.java:103)
at org.apache.cassandra.service.CassandraDaemon.<clinit>(CassandraDaemon.java:69)
任何有效的帮助和解决方案,谢谢。重新安装后我必须进行哪些更改。
编辑
我的日志文件在 /etc/cassandra/log4j-tools.properties
# output messages into a rolling log file as well as stdout
log4j.rootLogger=WARN,stderr
# stderr
log4j.appender.stderr=org.apache.log4j.ConsoleAppender
log4j.appender.stderr.target=System.err
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} %m%n