Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18427

Agent 2.4.0.1 start error "cannot import name split_on_chunks" after upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.4.0
    • None
    • ambari-agent
    • None
    • HDP 2.3

    Description

      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 /var/log/ambari-agent/ambari-agent.out:
      ====================
      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:

      https://community.hortonworks.com/questions/55968/ambari-agent-start-failed-2.html

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            harisekhon Hari Sekhon
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: