我安装了 DSE 4.0,启动了 datastax 代理,并设置了一个 12 节点集群。
当我查看 opscenter 控制台时,我看到已连接 0 个节点。
我在代理日志中看到此异常:
INFO [StompConnection receiver] 2014-04-09 06:23:12,187 Starting up agent collection.
INFO [Initialization] 2014-04-09 06:23:12,189 New JMX connection (127.0.0.1:7199)
INFO [StompConnection receiver] 2014-04-09 06:23:12,189 New JMX connection (127.0.0.1:7199)
INFO [StompConnection receiver] 2014-04-09 06:23:12,275 New JMX connection (127.0.0.1:7199)
INFO [Initialization] 2014-04-09 06:23:12,275 New JMX connection (127.0.0.1:7199)
ERROR [Initialization] 2014-04-09 06:23:12,289 Exception in thread "Initialization"
ERROR [Initialization] 2014-04-09 06:23:12,289 java.lang.NullPointerException
ERROR [StompConnection receiver] 2014-04-09 06:23:12,290 failed calling listener
java.lang.NullPointerException
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:296)
at opsagent.util.cassandra_util$find_base_dse_dir.invoke(cassandra_util.clj:45)
at opsagent.util.cassandra_util$get_base_dse_dir.invoke(cassandra_util.clj:68)
at opsagent.util.cassandra_util$tar_conf_location.invoke(cassandra_util.clj:87)
at opsagent.util.cassandra_util$cassandra_conf_location.invoke(cassandra_util.clj:97)
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$post_interface_startup.doInvoke(opsagent.clj:95)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at opsagent.conf$handle_new_conf.invoke(conf.clj:171)
at opsagent.messaging$message_callback$fn__5192.invoke(messaging.clj:30)
at opsagent.messaging.proxy$java.lang.Object$StompConnection$Listener$7f16bc72.onMessage(Unknown Source)
at org.jgroups.client.StompConnection.notifyListeners(StompConnection.java:311)
at org.jgroups.client.StompConnection.run(StompConnection.java:261)
我尝试将日志级别更改为全部,但它并没有将日志消息添加到此代码片段。