Ajeet Ganga
Ajeet Ganga

Reputation: 8653

Error starting Cassandra on Mac, installed using brew

I am on OS-X El Capitan 10.11.3. I installed Cassndra using brew and the current version is '2.2.2'

When i try to start cassandra, I get following error

$/usr/local/Cellar/cassandra/2.2.2/bin/cassandra -f
objc[46306]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Error opening zip file or JAR manifest missing : /usr/local/Cellar/cassandra/2.2.2/libexec/jamm-0.2.5.jar
Error occurred during initialization of VM
agent library failed to init: instrument

Upvotes: 0

Views: 3439

Answers (2)

doanduyhai
doanduyhai

Reputation: 8812

I never use installer (on Mac or Linux), it's so easy to download the tarball and unzip it to some folder (/opt/apps/cassandra for example). You'll have all your config files, binaries at the same place.

Also, do not forget to set environment variable:

export CASSANDRA_HOME=<your_Cassandra_install_folder>
export PATH=$PATH:$CASSANDRA_HOME/bin

I recommend using this method if you have trouble running Cassandra on Mac

Upvotes: 1

chaitan64arun
chaitan64arun

Reputation: 783

Hey this seems to be a similar problem stated in the mentioned Github post. https://github.com/Homebrew/legacy-homebrew/issues/32488

Gist from above post:

rm -rf /usr/local/etc/cassandra/ brew reinstall cassandra

But as suggested, tarball installation is simpler.

Upvotes: 3

Related Questions