0

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 つの異なる場所にあることも理想的ではありません。

4

3 に答える 3

3

conf_location プロパティを次のように設定して、この問題を修正しました。

conf_location = C:\Program Files\DataStax Community\apache-cassandra\conf\cassandra.yaml

最初はパスを引用符で囲んでいましたが、うまくいきませんでした。引用符を削除するとうまくいきました。

于 2013-12-12T16:18:37.987 に答える
0

エージェント構成ファイル address.yaml にエントリを追加して、この問題を修正しました。

ステップ、

  1. エージェント マシンへのログイン

  2. 停止エージェント

  3. JAVA_HOME が追加されていない場合は追加します

  4. 編集 (存在しない場合は作成) address.yaml (パッケージマネージャーを使用して OpsCenter Agent をインストールした場合は /etc/datastax-agent/ にあります)

  5. としてエントリを追加

カサンドラ_conf:

  1. エージェントを開始する

  2. opscenter を再起動します。opscenter を再起動するまで、新しいエージェントは表示されません。

cassandra_conf: /usr/lib/cassandra-2.0.5/conf/cassandra.yaml

存在しない場合を作成する

(OpscenterとAgentの両方のDataStaxバージョン5.0.1の場合)

于 2014-11-17T19:30:06.770 に答える