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

RU: HiveServer2 Cannot Deregister During Upgrade Due To Config Path Missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.0
    • 2.0.1, 2.1.0
    • ambari-server
    • None

    Description

      RU fails during HiveServer2 restart...

      hive --service hiveserver2 --deregister 2.2.0.0-2041 fails with exit code 255
      
      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
       

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

      Attachments

        1. AMBARI-10742.patch
          2 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: