- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to create file view in ambari?
- Labels:
-
Apache Ambari
Created ‎03-14-2017 01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi , I am using HDP 2.4 and ambari 2.2 want to create file view in ambari but when go to manage ambari-->views i could not see any "file" instance ..how can i create file view here..please help me
Created ‎03-14-2017 02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default you should see the default file view instance. If not then check the "/var/log/ambari-server/ambari-server.log" file to see if your default File View instance got deployed or not? You should see some entries like following:
INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/files-2.4.1.0.22.jar. INFO [main] ViewRegistry:1747 - setting up logging for view FILES{1.0.0} as per property file view.log4j.properties INFO [main] ViewRegistry:1811 - Auto creating instance of view FILES for cluster ClusterDemo. INFO [main] ViewRegistry:1689 - View deployed: FILES{1.0.0}.
. If you do not see those entries there means the file view is not deployed ... so you need to find out if the view jar is present in ambari installation or not?
Please check the following directory if you have the file view jar present there or not? (Version might be different in your case)
# ls -l /var/lib/ambari-server/resources/views/files-2.2.2.xxx.jar -rwxrwxrwx 1 root root 42287295 Dec 2 11:50 /var/lib/ambari-server/resources/views/files-2.2.2.xxx.jar
.
Also check if the user who is running Ambari Server has the read permission to this jar.
.
Once ambari deploys the views properly you should see directories created in the "work: folder as following:
]# ls -l /var/lib/ambari-server/resources/views/work/ | grep -i FILES drwxr-xr-x 7 root root 4096 Dec 2 11:52 FILES{1.0.0}
.
You can try deleting the "/var/lib/ambari-server/resources/views/work" directory and then restart ambari server so that it will recreate the "work" directory and extract the views jars there.
Created ‎03-14-2017 01:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎03-14-2017 01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for quick response@Ravi Mutyala
But here my concern i could not see any FILE View instance to expand,How to enable this?
- Browse to the Ambari Administration interface.
- Click Views, expand the Files View, and click Create Instance.
Created ‎03-14-2017 02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default you should see the default file view instance. If not then check the "/var/log/ambari-server/ambari-server.log" file to see if your default File View instance got deployed or not? You should see some entries like following:
INFO [main] ViewRegistry:1656 - Reading view archive /var/lib/ambari-server/resources/views/files-2.4.1.0.22.jar. INFO [main] ViewRegistry:1747 - setting up logging for view FILES{1.0.0} as per property file view.log4j.properties INFO [main] ViewRegistry:1811 - Auto creating instance of view FILES for cluster ClusterDemo. INFO [main] ViewRegistry:1689 - View deployed: FILES{1.0.0}.
. If you do not see those entries there means the file view is not deployed ... so you need to find out if the view jar is present in ambari installation or not?
Please check the following directory if you have the file view jar present there or not? (Version might be different in your case)
# ls -l /var/lib/ambari-server/resources/views/files-2.2.2.xxx.jar -rwxrwxrwx 1 root root 42287295 Dec 2 11:50 /var/lib/ambari-server/resources/views/files-2.2.2.xxx.jar
.
Also check if the user who is running Ambari Server has the read permission to this jar.
.
Once ambari deploys the views properly you should see directories created in the "work: folder as following:
]# ls -l /var/lib/ambari-server/resources/views/work/ | grep -i FILES drwxr-xr-x 7 root root 4096 Dec 2 11:52 FILES{1.0.0}
.
You can try deleting the "/var/lib/ambari-server/resources/views/work" directory and then restart ambari server so that it will recreate the "work" directory and extract the views jars there.
Created ‎03-14-2017 02:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Jay SenSharma
Yes i have not found files-2.2.2.xxx.jar
-rw-r--r-- 1 root root 571873 Jul 12 2016 ambari-admin-2.2.1.12.4.jar
-rw-r--r-- 1 root root 45379969 Jul 12 2016 capacity-scheduler-2.2.1.12.4.jar
-rw-r--r-- 1 root root 98659271 Jul 12 2016 hive-2.2.1.12.4.jar
-rw-r--r-- 1 root root 46912006 Jul 12 2016 pig-2.2.1.12.4.jar
-rw-r--r-- 1 root root 52241298 Jul 12 2016 slider-2.2.1.12.4.jar
-rw-r--r-- 1 root root 48027227 Jul 12 2016 tez-view-2.2.1.12.4.jar
drwxr-xr-x 8 root root 4096 Aug 5 2016 work
how could i add the jar file here?
Created ‎03-14-2017 02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much@Jay SenSharma
what are step should i follow after restart the ambari? can you suggest any document which help me step by step?
