DataStax Opscenter 启动期间出现错误,ImportError

问题描述 投票:0回答:1

我已经安装了datastax opscenter 6.8,参考:Datastax Docs。但是,opscenter 无法启动,startup.log 文件 (/var/log/opscenter/) 中出现以下错误。

06:42:34 [opscenterd] INFO: Loading OpsCenter...
06:42:34 [opscenterd] INFO: Updating system path
06:42:34 [opscenterd] INFO: Importing twisted logging
06:42:36 [opscenterd] INFO: Finished importing twisted logging
06:42:36 [opscenterd] INFO: Opscenterd starting up...
06:42:37 [opscenterd] ERROR: Critical error: Cannot start OpsCenter
Traceback (most recent call last):
  File "./bin/twistd", line 94, 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

我知道如果 /tmp 使用 noexec 挂载,可能会出现此问题。然而,在检查时,我的情况似乎并非如此。我的 tmp 安装配置:

/tmp tmpfs tmpfs rw,nosuid,nodev,seclabel,size=3961124k,nr_inodes=1048576

我的操作系统:Amazon Linux 2023。
Java版本:openjdk版本“1.8.0_402”

我在支持的平台中没有看到这一点:支持的平台。是因为操作系统不受支持吗?

我已经在我的虚拟机中用 centos 7 测试了它,它工作正常。任何人都可以帮我调试这个吗?预先感谢您。

cassandra datastax datastax-enterprise opscenter
1个回答
0
投票

发现问题,问题出在CPU架构上。我使用的是arm64架构的实例。切换到 x86-64 并成功。花了我很长时间来调试。对于那些苦苦挣扎的人来说,这可能也是你的问题。

© www.soinside.com 2019 - 2024. All rights reserved.