[
https://issues.apache.org/jira/browse/AMBARI-21684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150209#comment-16150209
]
Hadoop QA commented on AMBARI-21684:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12884902/AMBARI-21684.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:red}-1 tests included{color}. The patch doesn't appear to include
any new or modified tests.
Please justify why no new tests are needed for this
patch.
Also please list what manual steps were performed to
verify this patch.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:red}-1 core tests{color}. The test build failed in
[ambari-server|https://builds.apache.org/job/Ambari-trunk-test-patch/12131//artifact/patch-work/testrun_ambari-server.txt]
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/12131//console
This message is automatically generated.
> ambari-server upgrade process still puts the new views jar to default
> location even if views.dir is customized in ambari.properties
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-21684
> URL: https://issues.apache.org/jira/browse/AMBARI-21684
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server, ambari-upgrade, ambari-views
> Affects Versions: 2.4.2
> Reporter: Amogh Patel
> Attachments: AMBARI-21684.patch
>
>
> "ambari-server upgrade" process still puts the new views jar to default
> location even if views.dir is customized in ambari.properties
> Tested with Ambari 2.2.1 to upgrade to Ambari 2.4.0.
> Steps to reproduce:
> 1. Stop Ambari Server.
> 2. Move /var/lib/ambari-server/resources/views to a new custom directory.
> 3. Add views.dir property in ambari.properties with above custom directory as
> value.
> 4. Restart Ambari server and it view works.
> 5. Upgrade Ambari server.
> 6. Views.dir still points to new custom directory but upgrade puts the new
> jars again back to /var/lib/ambari-server/resources/views (default location).
> 7. Views fails as jars are older than current Ambari version in the views.dir
> location.
> {code}
> Every 2.0s: grep views.dir /etc/ambari-server/conf/ambari.properties
> Tue Aug 8 17:22:29 2017
> views.dir=/tmp/amogh/views
> Every 2.0s: ls -l /tmp/amogh/views
> Tue Aug 8 17:23:21 2017
> total 326792
> -rw-r--r-- 1 root root 571656 2017-08-08 00:42 ambari-admin-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 45378971 2017-08-08 00:42
> capacity-scheduler-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 42834901 2017-08-08 00:42 files-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 98657707 2017-08-08 00:42 hive-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 46910268 2017-08-08 00:42 pig-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 52239902 2017-08-08 00:42 slider-2.2.1.0.161.jar
> -rw-r--r-- 1 root root 48025481 2017-08-08 00:42 tez-view-2.2.1.0.161.jar
> drwxr-xr-x 10 root root 4096 2017-08-08 00:46 work
> -rw------- 1 root root 3309 2017-08-08 00:42
> zeppelin-view-1.0-SNAPSHOT.jar
> {code}
> After Upgrage
> {code}
> Every 2.0s: ls -l /var/lib/ambari-server/resources/views Tue
> Aug 8 17:23:44 2017
> total 582628
> -rwxrwxrwx 1 root root 917475 2016-08-30 19:29 ambari-admin-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 45784224 2016-08-30 19:29
> capacity-scheduler-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 42287167 2016-08-30 19:29 files-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 99518847 2016-08-30 19:29 hive-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 126641271 2016-08-30 19:29 hive-jdbc-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 35225272 2016-08-30 19:29
> hueambarimigration-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 47306795 2016-08-30 19:29 pig-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 53071022 2016-08-30 19:29 slider-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 1202086 2016-08-30 19:29 storm-view-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 49835854 2016-08-30 19:29 tez-view-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 49250942 2016-08-30 19:29 wfmanager-2.4.0.1.1.jar
> -rwxrwxrwx 1 root root 45547958 2016-08-30 19:29 zeppelin-view-2.4.0.1.1.jar
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)