Gour Saha created AMBARI-11324:
----------------------------------
Summary: 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
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)