ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <>
Subject [jira] [Commented] (AMBARI-8125) Views: Sometimes view only partially extracts
Date Mon, 03 Nov 2014 20:16:34 GMT


Tom Beerbower commented on AMBARI-8125:

If I use jar to look at the contents of the slider view jar on,
I see that it does contain a view.xml ...

[root@ip-172-31-39-112 ~]# /usr/jdk64/jdk1.7.0_67/bin/jar tvf /var/lib/ambari-server/resources/views/slider-0.0.1-SNAPSHOT.jar
| grep view.xml
  3654 Sun Nov 02 18:17:24 UTC 2014 view.xml

... but, the DEBUG output shows that the view.xml is never being extracted.

If I grep the logs with the following I should see DEBUG for the slider view.xml file, but
I don't see it.

grep "Extracting "  /var/log/ambari-server/ambari-server.log* | grep SLIDER{1.0.0} | grep

Locally, with a successfully extracted slider view I see the following result for the above

[root@c6401 ~]# grep "Extracting "  /var/log/ambari-server/ambari-server.log* | grep SLIDER{1.0.0}
| grep view.xml
13:42:09,515 DEBUG [pool-1-thread-1] ViewExtractor:98 - Extracting /var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}/view.xml

Also, if I compare the extracted folder on ...

[root@ip-172-31-39-112 ~]# ls /var/lib/ambari-server/resources/views/work/SLIDER\{1.0.0\}/
404.html  data  favicon.ico  font  img  javascripts  META-INF  org  stylesheets

to the locally extracted folder ...

[root@c6401 ~]# ls /var/lib/ambari-server/resources/views/work/SLIDER\{1.0.0\}/
404.html                          crossdomain.xml  favicon.ico  img         javascripts  org
               stylesheets  view.xml
apple-touch-icon-precomposed.png  data             font         index.html  META-INF
 tests.html   WEB-INF

I see that more than just the view.xml is missing.

> Views: Sometimes view only partially extracts
> ---------------------------------------------
>                 Key: AMBARI-8125
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.7.0
> Intermittent problem where view.xml (and other files) is missing from extracted view
> If the view.xml is missing then the resulting exception will look like ...
> {code}
> 07:17:13,542 ERROR [main] ViewRegistry:1314 - Caught exception loading view SLIDER{1.0.0}
> /var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}/view.xml
(No such file or directory)
> 	at Method)
> 	at<init>(
> 	at org.apache.ambari.server.view.ViewArchiveUtility.getViewConfigFromExtractedArchive(
> 	at org.apache.ambari.server.view.ViewRegistry.readViewArchive(
> 	at org.apache.ambari.server.view.ViewRegistry.readViewArchives(
> 	at org.apache.ambari.server.view.ViewRegistry.readViewArchives(
> 	at
> 	at org.apache.ambari.server.controller.AmbariServer.main(
> {code}

This message was sent by Atlassian JIRA

View raw message