【发布时间】:2014-04-20 02:01:24
【问题描述】:
我是 Cassandra 的新手。我按照DataStax Community Edition 中提到的说明在 Windows 7 64 位上安装了 DataStax Cassandra 社区版。我遵循完全相同的说明,但由于某种原因,我无法连接到 OpsCenter。然后我去尝试手动启动 OpsCenter 服务。我收到以下错误。
Windows 无法启动 DataStax OpsCenter Community 2.0.6 本地计算机。有关详细信息,请查看系统事件日志。如果 这是一项非 Microsoft 服务,请联系服务供应商,然后 请参阅服务特定的错误代码1。
任何帮助将不胜感激。
谢谢
初始日志
INFO [main] 2014-03-14 11:01:53,329 启动 Jetty 服务器:{:port 61621, :host nil, :ssl?假的,:加入?错误的} INFO [初始化] 2014-03-14 11:01:53,356 新 JMX 连接 (127.0.0.1:7199) INFO [初始化] 2014-03-14 11:01:53,374 新的 JMX 连接 (127.0.0.1:7199) INFO [Jetty] 2014-03-14 11:01:53,393 Jetty 服务器已启动 错误 [初始化] 2014-03-14 11:01:53,416 线程“初始化”中的异常 错误 [初始化] 2014-03-14 11:01:53,418 clojure.lang.ExceptionInfo: throw+: {:type :bad-permissions, :message "无法找到 cassandra.yaml 配置文件。如果您的配置文件没有找到安装 Cassandra 后,请在 OpsCenter 集群配置文件的 Cassandra 部分设置“conf_location”选项并重新启动 opscenterd。检查以下目录:[\"/etc/dse/cassandra/cassandra.yaml\"\"/etc /cassandra/conf/cassandra.yaml\" \"/etc/cassandra/cassandra.yaml\" \"C:\\Program Files\\DataStax Community\\utils\\conf\\cassandra.yaml\"]"} {:object {:type :bad-permissions, :message "无法找到 cassandra.yaml 配置文件。如果您的配置文件未在 Cassandra 安装中找到,请在 OpsCenter 的 Cassandra 部分设置 'conf_location' 选项集群配置文件并重启 opscenterd。检查以下目录:[\"/etc/dse/cassandra/cassandra.yaml\"\"/etc/cassandra/conf/cassand ra.yaml\" \"/etc/cassandra/cassandra.yaml\" \"C:\\Program Files\\DataStax Community\\utils\\conf\\cassandra.yaml\"]"}, :environment {tar -location "C:\Program Files\DataStax Community\utils\conf\cassandra.yaml", conf nil, 检查文件 ["/etc/dse/cassandra/cassandra.yaml" "/etc/cassandra/conf/cassandra. yaml" "/etc/cassandra/cassandra.yaml" "C:\Program Files\DataStax Community\utils\conf\cassandra.yaml"]}} 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.util.cassandra_util$cassandra_conf_location.invoke(cassandra_util.clj:118) 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.util.cassandra_util$get_cassandra_conf.invoke(cassandra_util.clj:130) 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.opsagent$create_thrift_conf_vars.invoke(opsagent.clj:52) 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.opsagent$setup_thrift.invoke(opsagent.clj:138) 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.jmx$determine_ip.invoke(jmx.clj:341) 错误 [初始化] 2014-03-14 11:01:53,418 在 opsagent.jmx$setup_jmx$fn__1359.invoke(jmx.clj:358) 错误 [初始化] 2014-03-14 11:01:53,419 at clojure.lang.AFn.run(AFn.java:24) 错误 [初始化] 2014-03-14 11:01:53,419 在 java.lang.Thread.run(未知来源) 错误 [StompConnection 接收器] 2014-03-14 11:01:54,309 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 INFO [StompConnection 接收器] 2014-03-14 11:01:54,569 在 2 秒内重新连接。
将 cassandra.yaml 文件复制并添加到 utils\conf 中,现在日志文件中出现以下错误
新日志
INFO [conf-requester] 2014-03-17 12:10:16,209 从 opscenterd 请求最新的 conf WARN [clojure-agent-send-off-pool-44] 2014-03-17 12:10:16,209 尝试在未连接时发送消息:/conf-request [["fe80:0:0:0:f905:968a :ba35:a65f%19","fe80:0:0:0:20c3:67db:49f9:631d%15","fe80:0:0:0:c0e8:7cb:589d:e349%17","0 :0:0:0:0:0:0:1","192.168.16.214","fe80:0:0:0:901d:eb95:fb56:2fa8%13","fe80:0:0:0 :0:100:7f:fffe%14","192.168.152.1","192.168.168.1","fe80:0:0:0:c52b:50f7:e159:d639%12","127.0.0.1"] ,["4.1.1","/1895607593/conf"]] 错误 [StompConnection 接收器] 2014-03-17 12:11:15,128 无法连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:11:15,128 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:12:16,130 连接到 127.0.0.1:61620:java.net.ConnectException 失败:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:12:16,130 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:13:17,137 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:13:17,137 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:14:18,140 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:14:18,140 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:15:19,152 无法连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:15:19,152 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:16:20,156 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:16:20,156 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:17:21,159 连接到 127.0.0.1:61620:java.net.ConnectException 失败:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:17:21,159 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:18:22,162 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 信息 [StompConnection 接收器] 2014-03-17 12:18:22,162 在 60 秒内重新连接。 错误 [StompConnection 接收器] 2014-03-17 12:19:23,175 未能连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 INFO [StompConnection 接收器] 2014-03-17 12:19:23,175 在 60 秒内重新连接。
【问题讨论】:
-
我遇到了同样的问题。今天在 2 台机器上安装了它(2.0.6 社区),无法启动 opscenter。事件日志中的错误是“DataStax OpsCenter Community 2.0.6 服务因特定于服务的错误功能不正确而终止。”
-
你能去系统日志把错误信息贴在这里吗?
-
嘿丹尼尔,请找到上面的日志。谢谢
-
你能把
\opscenter\agent\conf\address.yaml的内容粘贴一下吗? -
stomp_interface: 127.0.0.1 conf_location: "C:/Program Files/DataStax Community//apache-cassandra/conf/cassandra.yaml"