ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Grinenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-22966) ambari-agent fails to start
Date Tue, 13 Feb 2018 09:35:00 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-22966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmytro Grinenko updated AMBARI-22966:
-------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> ambari-agent fails to start
> ---------------------------
>
>                 Key: AMBARI-22966
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22966
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-agent
>    Affects Versions: 2.6.2
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Grinenko
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 2.6.2
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> ambari-agent start gives the following exception:
> {code}
> Traceback (most recent call last):
>  File "/usr/lib/ambari-agent/lib/ambari_agent/main.py", line 92, in <module>
>  import ProcessHelper
>  File "/usr/lib/ambari-agent/lib/ambari_agent/ProcessHelper.py", line 25, in <module>
>  from ambari_commons.shell import getTempFiles
>  File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 30, in <module>
>  from resource_management.core import sudo
>  File "/usr/lib/ambari-agent/lib/resource_management/__init__.py", line 23, in <module>
>  from resource_management.libraries import *
>  File "/usr/lib/ambari-agent/lib/resource_management/libraries/__init__.py", line 23,
in <module>
>  from resource_management.libraries.functions import *
>  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/__init__.py",
line 48, in <module>
>  from resource_management.libraries.functions.log_process_information import *
>  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/log_process_information.py",
line 22, in <module>
>  from ambari_commons.shell import shellRunner
> ImportError: cannot import name shellRunner
> {code}
> Most likely because of a circular dependency that was added by AMBARI-22888. Removing
the sudo import from shell makes the problem go away.
> sudo -> resource_management.libraries.* -> resource_management.libraries.functions.*
-> esource_management.libraries.functions.log_process_information.* -> ambari_commons.shell.shellRunner
-> resource_management.core.sudo



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message