[ 
https://issues.apache.org/jira/browse/AMBARI-8125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14195022#comment-14195022
 ] 

Tom Beerbower commented on AMBARI-8125:
---------------------------------------

If I use jar to look at the contents of the slider view jar on 
ec2-54-173-87-201.compute-1.amazonaws.com, I see that it does contain a 
view.xml ...

{code}
[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
{code}

... 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.

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

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

{code}
[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
{code}

Also, if I compare the extracted folder on 
ec2-54-173-87-201.compute-1.amazonaws.com ...

{code}
[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  
slider.properties  stylesheets  WEB-INF
{code}

to the locally extracted folder ...

{code}
[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     slider.properties  tests.html   WEB-INF
{code}

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



> Views: Sometimes view only partially extracts
> ---------------------------------------------
>
>                 Key: AMBARI-8125
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8125
>             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 directory.
> 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}
> java.io.FileNotFoundException: 
> /var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}/view.xml (No such 
> file or directory)
>       at java.io.FileInputStream.open(Native Method)
>       at java.io.FileInputStream.<init>(FileInputStream.java:146)
>       at 
> org.apache.ambari.server.view.ViewArchiveUtility.getViewConfigFromExtractedArchive(ViewArchiveUtility.java:81)
>       at 
> org.apache.ambari.server.view.ViewRegistry.readViewArchive(ViewRegistry.java:1287)
>       at 
> org.apache.ambari.server.view.ViewRegistry.readViewArchives(ViewRegistry.java:1239)
>       at 
> org.apache.ambari.server.view.ViewRegistry.readViewArchives(ViewRegistry.java:430)
>       at 
> org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:333)
>       at 
> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:648)
> {code}



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

Reply via email to