昨天,我尝试安装 opscenter 并启动现有 DSE 5.0 集群的导入。它失败并出现某些错误,指出安装的版本不是 opscenter 6.0。根本原因 - opscenter 安装是从 datastax 社区仓库完成的,而不是企业仓库。我更正了存储库信息以指向企业存储库,删除了现有的 opscenter 5.2.4,安装了新的 opscenter 6.0 - 一切看起来都不错。最后,当我启动服务时 - 启动失败,opscenter 无法启动,日志文件中没有任何内容。
我按照以下步骤删除了 opscenter 5.x 并安装了 opscenter 6.0
- 删除了旧版本的 ospcenter - Sudo yum remove opscenter
- 修改报告以指向企业存储库,例如 sudo vi /etc/yum.repos.d/datastax.repo
- 安装了 6.0-1 版本的 opscenter 。须藤 yum 安装 opscenter
- 启动 Opscenter - sudo service opscenterd start
Opscenter 进程未运行。它启动并在几秒钟后被杀死 - 我能够使用 top 命令验证它。我去检查日志文件,只能找到两个日志文件startup.log 和 gc.log.0.current。日志文件 opscenterd.log 中没有任何内容
startup.log
-----------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
2016-07-06 15:00:22,763 [opscenterd] INFO: Loading OpsCenter...
2016-07-06 15:00:22,779 [opscenterd] INFO: Updating system path
2016-07-06 15:00:22,780 [opscenterd] INFO: Importing twisted logging
2016-07-06 15:00:25,710 [opscenterd] INFO: Finished importing twisted logging
2016-07-06 15:00:25,710 [opscenterd] INFO: Opscenterd starting up...
安装时的Python版本是2.7.5
当我在前台模式下启动 Opscenter 时 - 我可以看到一些痕迹,不确定是否相关
sudo ./opscenter -f
--------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
2016-07-06 15:00:22,763 [opscenterd] INFO: Loading OpsCenter...
2016-07-06 15:00:22,779 [opscenterd] INFO: Updating system path
2016-07-06 15:00:22,780 [opscenterd] INFO: Importing twisted logging
2016-07-06 15:00:25,710 [opscenterd] INFO: Finished importing twisted logging
2016-07-06 15:00:25,710 [opscenterd] INFO: Opscenterd starting up...
Traceback (most recent call last):
File "./bin/twistd", line 63, in <module>
from twisted.scripts.twistd import run
File "/usr/share/opscenter/lib/py/twisted/scripts/twistd.py", line 13, in <module>
from twisted.application import app
File "/usr/share/opscenter/lib/py/twisted/application/app.py", line 17, in <module>
from twisted.application import service, reactors
File "/usr/share/opscenter/lib/py/twisted/application/service.py", line 24, in <module>
from twisted.internet import defer
File "/usr/share/opscenter/lib/py/twisted/internet/defer.py", line 29, in <module>
from twisted.python import lockfile, failure
File "/usr/share/opscenter/lib/py/twisted/python/lockfile.py", line 23, in <module>
from os import kill
ImportError: cannot import name kill
我尝试验证 Kill 是否在已安装的 Python 版本中可用 - 看起来不错
$ python -c "import os; from os import kill;print kill"
<built-in function kill>
opscenter 没有运行,我在 opscenter.log 中找不到任何内容。
这个问题是否存在,因为我已经删除了旧版本并且应该采取升级路径?
编辑 - 如果我将 opscenter 6.0 恢复到 5.2.4,那么它就会开始工作。看起来我搞砸了一些东西,需要先删除 5.2.4 才能让 opscenter 6.0 工作。非常感谢任何帮助或指导。