昨天,我尝试安装opscenter并开始导入现有的DSE5.0集群。由于某些错误,它失败了,指出安装的版本不是opscent6.0。根本原因-操作系统中心安装是从datastax社区回购而不是企业一号完成的。我更正了回购信息指向企业回购,删除了现有的opscenter 5.2.4,安装了新的opscenter 6.0 -所有看起来都不错。最后,当我启动服务启动失败时,opscenter无法启动,日志文件中没有任何内容。
我随后删除了opscenter 5.x并安装了opscenter 6.0。
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.log中找不到任何东西。
这个问题会出现吗?因为我已经删除了旧版本,应该采取升级的方式吗?
编辑--如果我将opscenter 6.0还原到5.2.4,那么它就开始工作了。看起来我搞砸了一些东西,首先需要干净的方法来删除5.2.4,这样才能得到opscenter 6.0的工作。任何帮助或指导都是非常感谢的。
发布于 2016-09-21 09:06:18
我也遇到了同样的问题。但是opscenter 6.0不能开始使用上面的解决方案。
查看支持平台列表,我认为这是因为我的操作系统是CentOS 6.2,它不在支持列表中。
所以我只使用了5.2版本,它运行得很好。
https://stackoverflow.com/questions/38229653
复制相似问题