[services.msc]を使用してWindowsのサービスとしてではなく、次のコードでCassandraDaemonスレッドを開始しました。
public static void start() {
if (cassandraDaemon == null) {
cassandraDaemon = new org.apache.cassandra.thrift.CassandraDaemon();
cassandraDaemon.activate();
}
}
上記のコードはcassandraサービスを開始し、テストしましたが、動作しますが、nodetool.batファイルは実行されません。
次のコマンドを使用するnodetool -h IPADDRESS info
と、生成されます
「IPADDRESS:7199」への接続に失敗しました: 接続が拒否されました: 接続
返信として。
初期化中に次のものを追加しました
System.setProperty("cassandra-foreground","true");
System.setProperty("com.sun.management.jmxremote","true");
System.setProperty("com.sun.management.jmxremote.port","7199");
System.setProperty("com.sun.management.jmxremote.authenticate","false");
System.setProperty("com.sun.management.jmxremote.ssl", "false");**
nodetoolが実行できるようにするには、コーディングに何を追加すればよいですか....
すぐに必要なので、誰かが親切に返信してくれたら……。