Dmytro Grinenko created AMBARI-22966:

             Summary: ambari-agent fails to start
                 Key: AMBARI-22966
             Project: Ambari
          Issue Type: Task
          Components: ambari-agent
    Affects Versions: 2.6.2
            Reporter: Dmytro Grinenko
            Assignee: Dmytro Grinenko
             Fix For: 2.6.2

ambari-agent start gives the following exception:

Traceback (most recent call last):
 File "/usr/lib/ambari-agent/lib/ambari_agent/", line 92, in <module>
 import ProcessHelper
 File "/usr/lib/ambari-agent/lib/ambari_agent/", line 25, in 
 from import getTempFiles
 File "/usr/lib/ambari-agent/lib/ambari_commons/", line 30, in <module>
 from resource_management.core import sudo
 File "/usr/lib/ambari-agent/lib/resource_management/", line 23, in 
 from resource_management.libraries import *
 File "/usr/lib/ambari-agent/lib/resource_management/libraries/", 
line 23, in <module>
 from resource_management.libraries.functions import *
 line 48, in <module>
 from resource_management.libraries.functions.log_process_information import *
 line 22, in <module>
 from import shellRunner
ImportError: cannot import name shellRunner

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.* -> -> resource_management.core.sudo

This message was sent by Atlassian JIRA

Reply via email to