在Ubuntu 14.04 LTS上尝试在1.1.7版中启动新安装的Apache Cassandra时遇到各种各样的未知(语法)错误。
到目前为止我做了什么:
安装:
$ wget http://archive.apache.org/dist/cassandra/1.1.7/apache-cassandra-1.1.7-bin.tar.gz
$ tar zxvf apache-cassandra-1.1.7-bin.tar.gz -C /opt
$ ln -s /opt/apache-cassandra-1.1.7 /opt/cassandra
$ chown cassandra -R /opt/apache-cassandra-1.1.7
$ chown cassandra -R /opt/cassandra
尝试开始:
$ sudo /opt/cassandra/bin/cassandra as cassandra
expr: syntax error
expr: syntax error
/opt/cassandra/bin/cassandra: 54: [: Illegal number:
/opt/cassandra/bin/cassandra: 58: [: Illegal number:
/opt/cassandra/bin/cassandra: 62: [: Illegal number:
expr: syntax error
/opt/cassandra/bin/cassandra: 76: [: Illegal number:
xss = -ea -javaagent:/opt/cassandra/bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -XmsM -XmxM -XmnM -XX:+HeapDumpOnOutOfMemoryError -Xss180k
$ Invalid initial heap size: -XmsM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
已安装的Java版本:
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
我找不到任何Cassandra日志。有人也遇到过这些错误吗?我怎样才能让Cassandra启动?提前谢谢。