Keyspace'OpsCenter'不存在

时间:2015-03-31 05:08:34

标签: datastax opscenter

当我启动datastax-agent查看/var/log/datastax-agent/agent.log时,我看到以下错误消息:

clojure.lang.ExceptionInfo: throw+: {:type :opsagent.cassandra/keyspaces-does-not-exist, :message "The OpsCenter storage keyspace, \"OpsCenter\", does not exist yet."} {:object {:type :opsagent.cassandra/keyspaces-does-not-exist, :message "The OpsCenter storage keyspace, \"OpsCenter\", does not exist yet."}, :environment {conn #<SessionManager com.datastax.driver.core.SessionManager@374c40ba>, ks-to-set "\"OpsCenter\"", current-ks nil, e #<InvalidQueryException com.datastax.driver.core.exceptions.InvalidQueryException: Keyspace 'OpsCenter' does not exist>}}
        at opsagent.cassandra$set_ks.invoke(cassandra.clj:28)
        at opsagent.cassandra$get_conn.invoke(cassandra.clj:33)
        at opsagent.cassandra$scan_pdps.invoke(cassandra.clj:180)
        at opsagent.cassandra$process_pdp_row$fn__2465.invoke(cassandra.clj:206)
        at opsagent.cassandra$process_pdp_row.invoke(cassandra.clj:204)
        at opsagent.cassandra$process_pdp_row.invoke(cassandra.clj:202)
        at opsagent.cassandra$load_pdps_with_retry$fn__2471.invoke(cassandra.clj:218)
        at opsagent.cassandra$load_pdps_with_retry.invoke(cassandra.clj:217)
        at opsagent.cassandra$setup_cassandra.invoke(cassandra.clj:275)
        at opsagent.opsagent$setup_cassandra.invoke(opsagent.clj:152)
        at opsagent.opsagent$init_jmx.invoke(opsagent.clj:206)
        at opsagent.opsagent$_main.doInvoke(opsagent.clj:271)
        at clojure.lang.RestFn.applyTo(RestFn.java

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

你应该重启opscenter;我这样做没问题!

  1. ssh到您的部署opscenter机器;
  2. kill -9 opscenter&#39; pid
  3. cd你的opscenter路径
  4. cd bin
  5. ./的OpsCenter