Uploaded image for project: 'Ambari (Retired)'
  1. Ambari (Retired)
  2. AMBARI-25622

During Upgrade, Hive upgrade restart should verify if de-registering old Hive z-nodes in Zookeeper is still required

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • 2.7.6
    • ambari-agent
    • None

    Description

      In case if old Hive z-nodes were already de-registered and user wanted to issue additional restarts with "upgrade restart" flag (for example during upgrade pause) - the command could fail as old z-nodes would be already de-registered.

      Execution of 'hive --config /usr/hdp/current/hive-server2/conf/conf.server --service hiveserver2 --deregister x.x.xxxx.x.x.x.xxx-x' returned 255. log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
      Error deregistering HiveServer2 instances for version: x.x.xxxx.x.x.x.xxx-x from ZooKeeper.org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /hiveserver2-sdm
      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py", line 91, in stop
          hive_server_upgrade.deregister()
        File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_upgrade.py", line 70, in deregister
          Execute(command, user=params.hive_user, path=hive_execute_path, tries=1 )
        File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
          self.env.run()
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
          self.run_action(resource, action)
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
          provider_action()
        File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 262, in action_run
          tries=self.resource.tries, try_sleep=self.resource.try_sleep)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
          result = function(command, **kwargs)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
          tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
          result = _call(command, **kwargs_copy)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call
          raise ExecutionFailed(err_msg, code, out, err)
      ExecutionFailed: Execution of 'hive --config /usr/hdp/current/hive-server2/conf/conf.server --service hiveserver2 --deregister x.x.xxxx.x.x.x.xxx-x' returned 255. log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
      Error deregistering HiveServer2 instances for version: x.x.xxxx.x.x.x.xxx-x from ZooKeeper.org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /hiveserver2-sdm
      

      The upgrade restart functionality for Hive should be enchanted to support this behaviour

      Attachments

        Activity

          People

            hapylestat Dmytro Grinenko
            hapylestat Dmytro Grinenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: