2

我是卡桑德拉的新手。我按照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)信息 [码头] 2014-03-14 11:01:53,393 码头服务器启动错误 [初始化] 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 部分并重新启动 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/cassandra.yaml\"\"/etc/cassandra/cassandra.yaml\"\"C: \\Program Files\\DataStax Community\\utils\\conf\\cassandra.yaml\"]"}, :environment {tar-location "C:


将 cassandra.yaml 文件复制并添加到 utils\conf 中,现在在日志文件中出现以下错误

新日志

15,128 在 60 年代重新连接。错误 [StompConnection 接收器] 2014-03-17 12:12:16,130 无法连接到 127.0.0.1:61620:java.net.ConnectException:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [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:连接被拒绝:连接 INFO [StompConnection 接收器] 2014-03-17 12:18:22,162 重新连接在 60 年代。错误 [StompConnection 接收器] 2014-03-17 12:19:23,175 未能连接到 127.0。

4

3 回答 3

2

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

我将“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/

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

于 2014-03-25T18:19:54.237 回答
1

我采用了 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。使用风险自负!

于 2014-03-26T14:26:30.853 回答
1

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

谢谢,斯文

于 2014-03-26T23:15:01.177 回答