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

Hive Service Check Fails During Upgrade Due to Missing Imports

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.2
    • 2.4.2
    • ambari-server
    • None

    Description

      • Ambari 2.4.0.0 -> Ambari 2.4.2.0-115
      • HDP 2.5.0 -> HDP 2.5.3.0.-14

      While upgrading HDP from 2.5.0.0 to HDP 2.5.3.0-14, hive service check failed with below error

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py", line 191, in <module>
          HiveServiceCheck().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py", line 88, in service_check
          params.hive_http_endpoint)
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py", line 173, in check_llap
          exec_path =  os.environ['PATH'] + os.pathsep + params.hadoop_bin_dir + os.pathsep + upgrade_hive_bin
      NameError: global name 'os' is not defined
      

      Attachments

        1. AMBARI-18887.patch
          6 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: