[ 
https://issues.apache.org/jira/browse/AMBARI-12195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609087#comment-14609087
 ] 

Srimanth Gunturi commented on AMBARI-12195:
-------------------------------------------

Made changes on review.

Committed to trunk and branch-2.1.
Below is the output of HDP-2.2 to HDP-2.3 upgrade
{code}
2015-06-30 21:07:17,352 - HiveServer2 executing "deregister" command in 
preparation for upgrade...
2015-06-30 21:07:17,353 - call['hive --version'] {'path': 
'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-server2/bin:/usr/hdp/2.2.4.2-2/hadoop/bin',
 'user': 'hive'}
2015-06-30 21:07:20,806 - call returned (0, 'Hive 0.14.0.2.2.4.2-2\nSubversion 
git://ip-10-0-0-5.ec2.internal/grid/0/jenkins/workspace/HDP-2.2.4.1-centos6/bigtop/build/hive/rpm/BUILD/hive-0.14.0.2.2.4.2
 -r 115d99896f5a4a81e7d91e052e8d38d7436b78d4\nCompiled by jenkins on Tue Mar 31 
16:26:33 EDT 2015\nFrom source with checksum 1f34a1d4e566c3e801582862ed85ee93')
2015-06-30 21:07:20,841 - hive-server2 is currently at version 2.2.4.2-2
2015-06-30 21:07:20,842 - Execute['hive --config /etc/hive/conf.server 
--service hiveserver2 --deregister 0.14.0.2.2.4.2-2'] {'path': 
['/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/2.3.0.0-2497/hive/bin:/usr/hdp/2.3.0.0-2497/hadoop/bin'],
 'tries': 1, 'user': 'hive'}
{code}

> HiveServer2 should pass correct version to the deregister command during RU
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-12195
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12195
>             Project: Ambari
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 2.1.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-12195.patch
>
>
> During RU when we restart HiveServer2 component, we _deregister_ the old 
> version by providing the HDP version instead of the Hive version - due to 
> which deregister does not work properly.
> {code}
> hive --config /usr/hdp/current/hive-server2/conf/conf.server --service 
> hiveserver2 --deregister 2.3.0.0-2458
> {code}
> We should provide the correct Hive version when above command is called. This 
> could be got from running {{hive --version}} and parsing the output.
> {noformat}
> # hive --version
> Hive 1.2.1.2.3.0.0-2466
> Subversion 
> git://ip-10-0-0-89.ec2.internal/grid/0/jenkins/workspace/HDP-dal-centos6/bigtop/build/hive/rpm/BUILD/hive-1.2.1.2.3.0.0
>  -r 63b17d6cb03530be6dc7f44cbbf21eb0d14cd0b3
> Compiled by jenkins on Wed Jun 24 10:29:28 EDT 2015
> From source with checksum b0e0440f018a0ef995ed5208e4515099
> {noformat}



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

Reply via email to