Hari Sekhon created AMBARI-18427:

             Summary: Agent start error "cannot import name 
split_on_chunks" after upgrade
                 Key: AMBARI-18427
                 URL: https://issues.apache.org/jira/browse/AMBARI-18427
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent
    Affects Versions: 2.4.0
            Reporter: Hari Sekhon

I hit this issue yesterday after upgrading ambari-agent:
Verifying Python version compatibility...
Using python  /usr/bin/pythonChecking for previously running Ambari Agent...
Starting ambari-agentVerifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see 
Traceback (most recent call last):  
   File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 
24, in <module>  from Controller import AGENT_AUTO_RESTART_EXIT_CODE  
   File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 41, 
in <module>  from ambari_agent.ActionQueue import ActionQueue  
   File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 
37, in <module>  from ambari_commons.str_utils import split_on_chunks
ImportError: cannot import name split_on_chunks
I'm not the first person to have encountered it, see:


Considering this is an existing cluster the solution of rm -rf'ing the entire 
python2.6 site-packages seems excessive...

This message was sent by Atlassian JIRA

Reply via email to