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

Existence of empty package folder in stack definition breaks the service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • ambari-agent
    • None

    Description

      In a deployment, if somehow an empty package folder ended up in the folder "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package". This resulted in the creation of an empty archive.zip file. Its an easy repro - just create an empty folder and restart Ambari Server.
      The empty zip file is shipped to the agents where they fail trying to unzip the file.
      We should log an error and move on rather than failing.
      WARNING 2015-06-24 13:17:51,226 FileCache.py:144 - Error occured during cache update. Error tolerate setting is set to true, so ignoring this error and continuing with current cache. Error details: Can not unpack zip file to directory /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package : File is not a zip file

      Attachments

        Activity

          People

            smnaha Nahappan Somasundaram
            smnaha Nahappan Somasundaram
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: