Cassandra JRE 8两个JDK

时间:2014-07-03 13:53:47

标签: java macos cassandra

所以我在Mac OSX Mavericks上有以下Java设置:

$ java -version

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

通过以下方式启动Cassandra时:

$ cassandra

我收到此错误声明:

    objc[4347]: Class JavaLaunchHelper is implemented in both 
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java and 
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libinstrument.dylib. 
One of the two will be used. Which one is undefined.
Fehler: Ausnahme von Agent ausgelöst : java.lang.NullPointerException

我该怎么办?

1 个答案:

答案 0 :(得分:2)

如果Cassandra已经在该节点上运行并且与Java警告无关,则会出现代理NullPointer异常。

检查jps以查看您的C *进程是否已在运行。

$ ps auwx | grep cassandra
$ sudo kill <pid>

http://www.datastax.com/docs/1.0/references/start_stop_ref