簡體   English   中英

Elassandra-錯誤:找不到或加載主類org.apache.cassandra.stress.Stress

[英]Elassandra - Error: Could not find or load main class org.apache.cassandra.stress.Stress

我正在嘗試在elassandra群集上運行cassandra-stress

買我總是收到這個錯誤:

$ PWD

/usr/share/cassandra/tools/bin

$。/卡桑德拉應力

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。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM