Been trying to build Apache Cassandra using Ant. The build is successful, but the Cassandra server won't start using bin\cassandra
because of the error: Error opening zip file or JAR manifest missing: D:\cassandra\lib\jamm-0.3.2
.
Here is the environment setup:
Just in case I tried recloning the repo in another directory, rebuilding, but same error.
Checking the output when building, I noticed warnings like this one, I don't know if it is relevant.
[artifact:dependencies] [WARNING] POM for 'org.perfkit.sjk.parsers:sjk-jfr5:pom:
0.5:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the c
urrent build.
Any idea of what else I could test? Thank you.
I've seen this issue, too, when running Cassandra from my build directory.
What you'll want to do is to "deploy" your build (target) to a different directory, and set your CASSANDRA_HOME
to that. Essentially, you'll want to emulate the how the "delivered" directory structure looks, ensuring that subdirs like bin/
, conf/
and lib/
are at the same directory level.
Try that and see if it helps.
I forgot to mention that I set the environment variables PATH, CASSANDRA_HOME and JAVA_HOME using the set
command.
By going to the system parameters and changing the user variables, it worked. I changed those three at the same time so I am not sure which one was blocking.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.