我正在尝试在elassandra群集上运行cassandra-stress

买我总是收到这个错误:


  $ pwd


/usr/share/cassandra/tools/bin


  $。/ cassandra-stress


Error: Could not find or load main class 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.javaStress.class

我在这里找到它:https://github.com/apache/cassandra/blob/trunk/tools/stress/src/org/apache/cassandra/stress/Stress.java

但是我不知道怎么用

最佳答案

直到v6.2.3.10为止,Stress.jar才与elassandra发行版一起打包。
v6.2.3.11中已修复此问题。

解决方法是使用官方Cassandra发行版中的Stresstool。

10-01 03:13