我正在尝试在 elassandra 集群上运行 cassandra-stress
。
购买时我总是遇到此错误:
$pwd
/usr/share/cassandra/tools/bin
$./cassandra-stress
错误:无法找到或加载主类 org.apache.cassandra.stress.Stress
E 编辑了 cassandra-stress 文件,我检查了这一点 该文件包含以下内容:
"$JAVA" -server -ea -cp "$CLASSPATH" $JVM_OPTS \
-Dcassandra.storagedir="$cassandra_storagedir" \
-Dlogback.configurationFile=logback-tools.xml \
org.apache.cassandra.stress.Stress $@
但系统上不存在文件Stress.java
和Stress.class
。
但是不知道怎么用
最佳答案
在 v6.2.3.10 之前,stress.jar 并未与 elassandra 发行版一起打包。 此问题已在 v6.2.3.11 中修复。
作为一种解决方法,人们可以使用官方 Cassandra 发行版中的压力工具。
关于java - Elassandra - 错误 : Could not find or load main class org. apache.cassandra.stress.Stress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54635594/