You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2015/04/25 01:20:38 UTC

[jira] [Created] (AMBARI-10742) RU: HiveServer2 Cannot Deregister During Upgrade Due To Config Path Missing

Jonathan Hurley created AMBARI-10742:
----------------------------------------

             Summary: RU: HiveServer2 Cannot Deregister During Upgrade Due To Config Path Missing
                 Key: AMBARI-10742
                 URL: https://issues.apache.org/jira/browse/AMBARI-10742
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.1.0, 2.0.1


RU fails during HiveServer2 restart...

{code}
hive --service hiveserver2 --deregister 2.2.0.0-2041 fails with exit code 255
{code}

{code}
2015-04-15 18:45:46,923 - Error while executing command 'restart':
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 360, in restart
    self.stop(env, rolling_restart=rolling_restart)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py", line 69, in stop
    hive_server_upgrade.pre_upgrade_deregister()
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_upgrade.py", line 54, in pre_upgrade_deregister
    Execute(command, user=params.hive_user, path=params.execute_path, tries=1 )
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 274, in action_run
   raise ex
Fail: Execution of 'hive --service hiveserver2 --deregister 2.2.0.0-2041^M' returned 255. SLF4J: Class path contains multiple SLF4J bindings.^M
SLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-2041/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]^M
SLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-2041/hive/lib/hive-jdbc-0.14.0.2.2.0.0-2041-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]^M
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.^M
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]^M
 {code}

Instead of exporting HIVE_CONF_DIR, it will be better to just add the following param: --config /etc/hive/conf.server



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)