You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Dmytro Grinenko (Jira)" <ji...@apache.org> on 2021/02/23 23:17:00 UTC
[jira] [Created] (AMBARI-25622) During Upgrade, Hive upgrade
restart should verify if de-registering old Hive z-nodes in Zookeeper is
still required
Dmytro Grinenko created AMBARI-25622:
----------------------------------------
Summary: 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
Fix For: 2.7.6
In case if old Hive z-nodes were already de-registered and user issue additional restarts with "upgrade restart" flag (for example during upgrade pause) - the command will 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}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)