ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Grinenko (Jira)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-25622) During Upgrade, Hive upgrade restart should verify if de-registering old Hive z-nodes in Zookeeper is still required
Date Tue, 23 Feb 2021 23:20:00 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-25622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmytro Grinenko updated AMBARI-25622:
-------------------------------------
    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. 

{code}
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
{code}

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

  was:
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. 
{code}
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
{code}

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


> During Upgrade, Hive upgrade restart should verify if de-registering old Hive z-nodes
in Zookeeper is still required
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-25622
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25622
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-agent
>    Affects Versions: 2.6.0
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Grinenko
>            Priority: Major
>             Fix For: 2.7.6
>
>
> 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. 
> {code}
> 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
> {code}
> The upgrade restart functionality for Hive should be enchanted to support this behaviour



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message