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

RU: RESTART SPARK2/SPARK2_CLIENT failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.5.1
    • 2.5.1
    • ambari-server
    • None

    Description

      STR:

      1. Deploy HDP 2.5.3.0-37 on Ambari 2.4.2.0
      2. Enable NN HA
      3. Upgrade ambari to 2.5.1.0-95
      4. Register and install HDP 2.6.1.0-56
      5. Perform RU to Finalize
      6. Perform Downgrade
        Result: RESTART SPARK2/SPARK2_CLIENT failed during Downgrade

      std.err

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/spark_client.py", line 60, in <module>
      SparkClient().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 315, in execute
      method(env)
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 783, in restart
      self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
      File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/spark_client.py", line 51, in pre_upgrade_restart
      import params
      File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/params.py", line 209, in <module>
      livy2_pid_dir = status_params.livy2_pid_dir
      AttributeError: 'module' object has no attribute 'livy2_pid_dir'
      

      it was caused by AMBARI-19248 which assumes that livy2_pid_dir is present even if livy2 is not installed.

      Attachments

        1. AMBARI-20980.patch
          1 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: