You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2017/09/01 08:14:00 UTC
[jira] [Updated] (AMBARI-21684) ambari-server upgrade process still
puts the new views jar to default location even if views.dir is customized
in ambari.properties
[ https://issues.apache.org/jira/browse/AMBARI-21684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Onischuk updated AMBARI-21684:
-------------------------------------
Attachment: 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
> -----------------------------------------------------------------------------------------------------------------------------------
>
> 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)