Windows Server 2012 R2 Datacenter マシンに Datastax Community Edition v2.0.3 をインストールしました。通常のインストール後、エージェントの起動に失敗したため、OpsCenter を使用してデータベースに接続できません。ページの上部に「0/1 エージェントが接続されました」と表示されます。CQLSH を使用してデータベース自体に接続できます。この問題は、v2.0.2 では発生しません。
私のdatastax_opscenter_agent-stderr.log
ファイルには以下が含まれています:
2013-12-05 16:16:54 Commons Daemon procrun stderr initialized
Exception in thread "Initialization" clojure.lang.ExceptionInfo: throw+: {:type :bad-permissions, :message "Unable to locate the cassandra.yaml configuration file. If your configuration file is not located with the Cassandra install, please set the 'conf_location' option in the Cassandra section of the OpsCenter cluster configuration file and restart opscenterd. Checked the following directories: [\"/etc/dse/cassandra/cassandra.yaml\" \"/etc/cassandra/conf/cassandra.yaml\" \"/etc/cassandra/cassandra.yaml\" \"C:\\\\Program Files\\\\DataStax Community\\\\apache-cassandra\\\\bin\\\\conf\\\\cassandra.yaml\"]"} {:object {:type :bad-permissions, :message "Unable to locate the cassandra.yaml configuration file. If your configuration file is not located with the Cassandra install, please set the 'conf_location' option in the Cassandra section of the OpsCenter cluster configuration file and restart opscenterd. Checked the following directories: [\"/etc/dse/cassandra/cassandra.yaml\" \"/etc/cassandra/conf/cassandra.yaml\" \"/etc/cassandra/cassandra.yaml\" \"C:\\\\Program Files\\\\DataStax Community\\\\apache-cassandra\\\\bin\\\\conf\\\\cassandra.yaml\"]"}, :environment {tar-location "C:\\Program Files\\DataStax Community\\apache-cassandra\\bin\\conf\\cassandra.yaml", conf nil, checked-files ["/etc/dse/cassandra/cassandra.yaml" "/etc/cassandra/conf/cassandra.yaml" "/etc/cassandra/cassandra.yaml" "C:\\Program Files\\DataStax Community\\apache-cassandra\\bin\\conf\\cassandra.yaml"]}}
at opsagent.util.cassandra_util$cassandra_conf_location.invoke(cassandra_util.clj:118)
at opsagent.util.cassandra_util$get_cassandra_conf.invoke(cassandra_util.clj:130)
at opsagent.opsagent$create_thrift_conf_vars.invoke(opsagent.clj:52)
at opsagent.opsagent$setup_thrift.invoke(opsagent.clj:138)
at opsagent.jmx$determine_ip.invoke(jmx.clj:333)
at opsagent.jmx$setup_jmx$fn__1309.invoke(jmx.clj:350)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Unknown Source)
実際には、あるはずcassandra.yaml
のディレクトリにファイルがあります。C:\Program Files\DataStax Community\apache-cassandra\conf
ただし、上記のメッセージは を検索したことを示していC:\\Program Files\\DataStax Community\\apache-cassandra\\bin\\conf\\cassandra.yaml
ます (\bin に注意してください)。
conf_location
ログの提案に従って、でオプションを設定するopscenter\conf\clusters\local.conf
と、同じエラーが発生します。
これにより、Windows ファイアウォールがオフになりました。
編集
私は少しいじっていましたが、探していたパスcassanda.yaml
が変更されたことを除いて、ログに同じ例外が表示されます
「C:\Program Files\DataStax Community\apache-cassandra\bin\conf\cassandra.yaml」
に
「C:\Program Files\DataStax Community\utils\conf\cassandra.yaml」
これを変更するために何をしたかわかりません。
cassandra.yaml
上記のディレクトリにコピーしようとしました。これにより、 の例外が取り除かれdatastax_opscenter_agent-stderr.log
ますが、OpsCenter は依然として「0/1 エージェントが接続されています」と表示します。ただし、ダッシュボードのグラフにデータが表示されるようになりました。キースペースをスキーマに追加することもできますが、作成後に表示されません。ただし、を使用してアクセスできCLQSH
ます。明らかにcassandra.yaml
、2 つの異なる場所にあることも理想的ではありません。