Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

There is no views in my clusters???

avatar
Contributor

when i use ambari to install HDP(include HDFS、YARN、HIVE、TEZ), but when i login in Ambari Web,

and select admin > Manage Ambari.On the Ambari Admin page, click Views.there is no views. How can i solve this problem??

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Ye Jun

As there are no view JARs present inside "/var/lib/ambari-server/resources/views/" hence it indicates either someone mistakenly deleted those JARs OR incomplete installation.

So either get the same version of View JARs from another working installation and put them in the same directory then restart the ambari server. Or reinstall the ambari server to get those JARs.

.

View solution in original post

5 REPLIES 5

avatar
Master Mentor

@Ye Jun

Do you see the view related Jars present in the following directory of your ambari and has proper read permission?

/var/lib/ambari-server/resources/views/

Also ambari extracts those view jars and deploys it inside the following directory so can you please see if you are able to list the "work" directory:

# ls -l /var/lib/ambari-server/resources/views/work/

- The user who is running the ambari should have read access to the view jars.

- Do you see the view instance initialization message in your ambari-server.log as following:

Example:

20 Dec 2016 10:36:48,201  INFO [main] ViewRegistry:1811 - Auto creating instance of view TEZ for cluster qnhadoop.
20 Dec 2016 10:36:48,205  INFO [main] ViewRegistry:1689 - View deployed: TEZ{0.7.0.2.5.0.0-22}.
20 Dec 2016 10:36:48,211  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/ambari-admin-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,223  INFO [main] ViewRegistry:1689 - View deployed: ADMIN_VIEW{2.4.1.0}.
20 Dec 2016 10:36:48,228  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/capacity-scheduler-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,257  INFO [main] ViewRegistry:1747 - setting up logging for view CAPACITY-SCHEDULER{1.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,281  INFO [main] ViewRegistry:1811 - Auto creating instance of view CAPACITY-SCHEDULER for cluster qnhadoop.
20 Dec 2016 10:36:48,281  INFO [main] ViewRegistry:1689 - View deployed: CAPACITY-SCHEDULER{1.0.0}.
20 Dec 2016 10:36:48,288  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/zeppelin-view-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,325  INFO [main] ViewRegistry:1689 - View deployed: ZEPPELIN{1.0.0}.
20 Dec 2016 10:36:48,330  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/wfmanager-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,368  INFO [main] ViewRegistry:1689 - View deployed: Workflow Manager{1.0.0}.
20 Dec 2016 10:36:48,378  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/hueambarimigration-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,412  INFO [main] ViewRegistry:1747 - setting up logging for view HUETOAMBARI_MIGRATION{1.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,420  INFO [main] ViewRegistry:1689 - View deployed: HUETOAMBARI_MIGRATION{1.0.0}.
20 Dec 2016 10:36:48,427  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/pig-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,481  INFO [main] ViewRegistry:1747 - setting up logging for view PIG{1.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,543  INFO [main] ViewRegistry:1689 - View deployed: PIG{1.0.0}.
20 Dec 2016 10:36:48,552  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/files-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,590  INFO [main] ViewRegistry:1747 - setting up logging for view FILES{1.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,620  INFO [main] ViewRegistry:1811 - Auto creating instance of view FILES for cluster qnhadoop.
20 Dec 2016 10:36:48,620  INFO [main] ViewRegistry:1689 - View deployed: FILES{1.0.0}.
20 Dec 2016 10:36:48,626  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/storm-view-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,629  INFO [main] ViewRegistry:1747 - setting up logging for view Storm_Monitoring{0.1.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,634  INFO [main] ViewRegistry:1689 - View deployed: Storm_Monitoring{0.1.0}.
20 Dec 2016 10:36:48,639  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/hive-jdbc-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,710  INFO [main] ViewRegistry:1747 - setting up logging for view HIVE{1.5.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,832  INFO [main] ViewRegistry:1811 - Auto creating instance of view HIVE for cluster qnhadoop.
20 Dec 2016 10:36:48,832  INFO [main] ViewRegistry:1689 - View deployed: HIVE{1.5.0}.
20 Dec 2016 10:36:48,837  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/slider-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,879  INFO [main] ViewRegistry:1747 - setting up logging for view SLIDER{2.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:48,892  INFO [main] ViewRegistry:1689 - View deployed: SLIDER{2.0.0}.
20 Dec 2016 10:36:48,897  INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/hive-2.4.1.0.22.jar.
20 Dec 2016 10:36:48,959  INFO [main] ViewRegistry:1747 - setting up logging for view HIVE{1.0.0} as per property file view.log4j.properties
20 Dec 2016 10:36:49,064  INFO [main] ViewRegistry:1689 - View deployed: HIVE{1.0.0}.

.

avatar
Contributor

Thanks Jay, i check /var/lib/ambari-server/resources/views/, there is no jar file in it , how to solve this problem?

avatar
Master Mentor

@Ye Jun

As there are no view JARs present inside "/var/lib/ambari-server/resources/views/" hence it indicates either someone mistakenly deleted those JARs OR incomplete installation.

So either get the same version of View JARs from another working installation and put them in the same directory then restart the ambari server. Or reinstall the ambari server to get those JARs.

.

avatar
Contributor

Thanks ,i get the same version of View JARs from another working installation, and put this jar to /var/lib/ambari-server/resources/views/,and restart ambari-server, the problem is solved, This problem may be related to the installation of the ambari source code

avatar
Explorer
@Ye Jun

When you build Ambari you'll need to include "-Dviews" in maven to include all views in your packaged RPM. That would add all the views jars under /var/lib/ambari-server/resources/views/ when the RPM is installed.