You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2015/09/15 00:13:46 UTC

[jira] [Updated] (AMBARI-11324) How to update an Ambari View with additional or newer versions of existing jars

     [ https://issues.apache.org/jira/browse/AMBARI-11324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yusaku Sako updated AMBARI-11324:
---------------------------------
    Assignee: Gour Saha

> How to update an Ambari View with additional or newer versions of existing jars
> -------------------------------------------------------------------------------
>
>                 Key: AMBARI-11324
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11324
>             Project: Ambari
>          Issue Type: Documentation
>          Components: ambari-views
>    Affects Versions: 1.7.0
>            Reporter: Gour Saha
>            Assignee: Gour Saha
>             Fix For: 1.7.0
>
>
> If an Ambari View needs an additional jar (or a newer version of an existing jar) these are the steps required to update the Ambari View webapp.
> The steps listed are using Ambari Slider View webapp as an example.
> # Locate the jar {code}/var/lib/ambari-server/resources/views/slider-<version>.jar{code} and take a backup of it somewhere
> # Create a temp directory say {{/tmp/slider/}} and unpack the above jar into it
> {noformat}
> mkdir /tmp/slider
> cd /tmp/slider
> jar xvf /var/lib/ambari-server/resources/views/slider-<version>.jar 
> {noformat}
> # Drop the new or updated versions of existing jars into the folder {{/tmp/slider/WEB-INF/lib/}}. Make sure you delete the old jars if you have dropped newer versions of them.
> # Re-pack the jar and update the original location with it -
> {noformat}
> cd /tmp/slider
> jar cvf /tmp/slider-<version>.jar .
> cp /tmp/slider-<version>.jar /var/lib/ambari-server/resources/views/slider-<version>.jar
> {noformat}
> # Locate the directory {code}/var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}{code} If it exists, then drop the new jar into the following path {{/var/lib/ambari-server/resources/views/work/SLIDER\{1.0.0\}/WEB-INF/lib/}}. If the directory does not exist, then skip this step.
> # Restart ambari-server



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