【问题标题】:Datastax Cassandra OpsCenter service not starting on Windows 7Datastax Cassandra OpsCenter 服务未在 Windows 7 上启动
【发布时间】: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"

标签: cassandra datastax


【解决方案1】:

在他们修复之前,我可以确认一个对我有用的修复:

我将“conf”目录从<installdir>/opscenter<installdir>/apache-cassandra 复制到<installdir>/utils

然后,我还将“OpenSSL”文件夹从<installdir>/opscenter/lib-fallback/py-win32/2.7 复制到<installdir>/opscenter/lib/py-win32/2.7

然后我手动启动了“DataStax OpsCenter 社区”服务,并成功导航到 OpsCenter 本身的 localhost:8888/

与任何此类黑客一样,请确保您有完整的备份,我不保证。

【讨论】:

    【解决方案2】:

    我采用了 user3461142 的解决方案(对我有用)并编写了一个创建符号链接的 bat 文件,因此如果任何配置文件发生更改,您不必将它们复制到“utils/conf 目录”

    REM create symlinks so that OpsCenter's Service will run
    cd %ProgramFiles%\DataStax Community\utils
    mkdir conf
    cd .\conf
    
    REM Create Links for Cassandra
    mklink /J triggers          ..\..\apache-cassandra\conf\triggers
    mklink cassandra.yaml           ..\..\apache-cassandra\conf\cassandra.yaml
    mklink cassandra-env.sh         ..\..\apache-cassandra\conf\cassandra-env.sh
    mklink cassandra-rackdc.properties  ..\..\apache-cassandra\conf\cassandra-rackdc.properties
    mklink cassandra-topology.properties    ..\..\apache-cassandra\conf\cassandra-topology.properties
    mklink cassandra-topology.yaml      ..\..\apache-cassandra\conf\cassandra-topology.yaml
    mklink commitlog_archiving.properties   ..\..\apache-cassandra\conf\commitlog_archiving.properties
    mklink log4j-server.properties      ..\..\apache-cassandra\conf\log4j-server.properties
    mklink log4j-tools.properties       ..\..\apache-cassandra\conf\log4j-tools.properties
    mklink rep2.bat             ..\..\apache-cassandra\conf\rep2.bat
    mklink rep3.bat             ..\..\apache-cassandra\conf\rep3.bat
    
    REM Create Links for OpsCenter
    mklink /J clusters      ..\..\opscenter\conf\clusters
    mklink /J definitions       ..\..\opscenter\conf\clusters
    mklink /J event-plugins     ..\..\opscenter\conf\clusters
    mklink install_id       ..\..\opscenter\conf\install_id
    mklink install_type     ..\..\opscenter\conf\install_type
    mklink log4j.properties     ..\..\opscenter\conf\log4j.properties
    mklink opscenterd.conf      ..\..\opscenter\conf\opscenterd.conf
    mklink ssl.conf         ..\..\opscenter\conf\ssl.conf
    
    REM Create Links for OpenSSL
    cd ..\..\opscenter\lib\py-win32\2.7
    mklink /J OpenSSL ..\..\..\lib-fallback\py-win32\2.7\OpenSSL
    

    注意这假设您在默认程序文件目录中安装了 Cassandra。使用风险自负!

    【讨论】:

      【解决方案3】:

      现在有一个新版本可供下载,该版本已修复此问题。请试一试。问题是 opscenter 定义下载代码无条件使用 ssl,Windows 不支持该代码。现在,address.yaml 和 local.conf 还指定了 cassandra 配置文件的正确位置。

      谢谢, 斯文

      【讨论】:

        猜你喜欢
        • 2013-10-30
        • 1970-01-01
        • 2016-09-11
        • 1970-01-01
        • 2017-08-02
        • 2013-08-05
        • 1970-01-01
        • 2016-08-27
        • 2015-02-17
        相关资源
        最近更新 更多