cloudera manager Exception: Cannot find alternativ

從新安裝cloudera manager agent 日誌一直報如下錯誤:python

日誌路徑:tail -f /opt/cm-5.4.1/log/cloudera-scm-agent/cloudera-scm-agent.logapp

錯誤內容:ide

Exception: Cannot find alternatives database in ['/var/lib/alternatives', '/var/lib/dpkg/alternatives', '/var/lib/rpm/alternatives'].oop

[04/Jun/2015 17:34:07 +0000] 4637 MainThread agent        INFO     Using parcels directory from server provided value: /opt/cloudera/parcelsspa

[04/Jun/2015 17:34:07 +0000] 4637 MainThread parcel       INFO     Agent does create users/groups and apply file permissions日誌

[04/Jun/2015 17:34:07 +0000] 4637 MainThread downloader   INFO     Downloader path: /opt/cloudera/parcel-cachecode

[04/Jun/2015 17:34:07 +0000] 4637 MainThread parcel_cache INFO     Using /opt/cloudera/parcel-cache for parcel cacheserver

[04/Jun/2015 17:34:07 +0000] 4637 MainThread agent        ERROR    Caught unexpected exception in main loop.it

Traceback (most recent call last):io

  File "/opt/cm-5.4.1/lib64/cmf/agent/src/cmf/agent.py", line 543, in start

    self._init_after_first_heartbeat_response(heartbeat_response["data"])

  File "/opt/cm-5.4.1/lib64/cmf/agent/src/cmf/agent.py", line 664, in _init_after_first_heartbeat_response

    deploy_env=self.supervisee_environment)

  File "/opt/cm-5.4.1/lib64/cmf/agent/src/cmf/client_configs.py", line 287, in __init__

    self.db_path = self._find_db_path()

  File "/opt/cm-5.4.1/lib64/cmf/agent/src/cmf/client_configs.py", line 325, in _find_db_path

    repr(DB_CANDIDATES))

Exception: Cannot find alternatives database in ['/var/lib/alternatives', '/var/lib/dpkg/alternatives', '/var/lib/rpm/alternatives'].


解決辦法:mkdir /var/lib/alternatives 便可

相關文章
相關標籤/搜索