[
https://issues.apache.org/jira/browse/AMBARI-12280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617605#comment-14617605
]
Hudson commented on AMBARI-12280:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #3068 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/3068/])
AMBARI-12280. HiveServer2 upgrade/downgrade should deregister old server after
new one is started (srimanth) (sgunturi:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=23cdd769ae1ef056b2afc770fea672ca4421f447)
*
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/UpgradeDAOTest.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java
* ambari-common/src/main/python/resource_management/libraries/script/script.py
*
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
* ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
*
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py
* ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeContext.java
*
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
*
ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
*
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_upgrade.py
> HiveServer2 upgrade/downgrade should deregister old server after new one is
> started
> -----------------------------------------------------------------------------------
>
> Key: AMBARI-12280
> URL: https://issues.apache.org/jira/browse/AMBARI-12280
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Srimanth Gunturi
> Assignee: Srimanth Gunturi
> Priority: Critical
> Fix For: 2.1.0
>
> Attachments: AMBARI-12280.patch
>
>
> During upgrade/downgrade, the deregister is happening before the new HS2 is
> started. This can lead to a case where there is no HS2 up and running. The
> order needs to be fixed, to first start target version of HS2 and then do the
> deregister.
> 1. Switch hive-server2 to the new software version, start the new process,
> and deregister the old version of hive-server2:
> Since the current version would have changed before hive version is obtained
> for deregister command, the version should be obtained using the HDP
> versioned path.
> /usr/hdp/$HDP_VERSION/hive/bin/hive --version
> It will be safer to use the full path to hive for this, instead of relying on
> the $PATH variable setting.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)