- 下載源代碼
- 進(jìn)入cassandra源碼目錄,運行ant generate-eclipse-files(前提是安裝了ant,如果是mac用戶brew install ant很快就好了)
-
點擊+添加新的configuration,選擇Application
Configuration
其中Main class為org.apache.cassandra.service.CassandraDaemon
VM option為:
-Dcassandra-foreground=yes -Dcassandra.config=file://$PROJECT_DIR$/conf/cassandra.yaml -Dcassandra.storagedir=$PROJECT_DIR$/data -Dlogback.configurationFile=file://$PROJECT_DIR$/conf/logback.xml -Dcassandra.logdir=$PROJECT_DIR$/data/logs -ea -Xmx1G
- 點擊debug按鈕
- 在cassandra/bin目錄下運行cqlsh即可
