- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Service 'hdfs' check failed-From Ambari
- Labels:
-
Apache Hadoop
Created 08-18-2017 05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Team ,
After installing HDP using the Ambari , from Menu if I click on "File View" .
It get the " Issues detected Service 'hdfs' check failed" . With following exception .
java.lang.NullPointerException at org.apache.ambari.server.view.ClusterImpl.getConfigByType(ClusterImpl.java:71) at org.apache.ambari.view.utils.hdfs.ConfigurationBuilder.copyPropertiesBySite(ConfigurationBuilder.java:203) at org.apache.ambari.view.utils.hdfs.ConfigurationBuilder.buildConfig(ConfigurationBuilder.java:311) at org.apache.ambari.view.utils.hdfs.HdfsApi.<init>(HdfsApi.java:68) at org.apache.ambari.view.utils.hdfs.HdfsUtil.getHdfsApi(HdfsUtil.java:150) at org.apache.ambari.view.utils.hdfs.HdfsUtil.connectToHDFSApi(HdfsUtil.java:138) at org.apache.ambari.view.commons.hdfs.HdfsService.hdfsSmokeTest(HdfsService.java:145) at org.apache.ambari.view.filebrowser.HelpService.hdfsStatus(HelpService.java:95)
Created 08-20-2017 11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now all works . After deleting the old view .
Thanks a lot @Geoffrey Shelton Okot for helping and answering question very prompt .
Created 08-18-2017 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried restarting ambari once and then tried accessing the view again? If not then please try restarting ambari once.
- If it still does not fix the issue then please provide us the following info:
1. Which version of ambari is it?
2. Is this the default File View instance or you created one. If custom File View instance then please share the details of the view configuration.
3. By any chance do you notice any additional WARN / ERROR in ambari server log?
4. Your HDFS service checks are running fine?
.
Created 08-18-2017 06:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I did restart , it remains same .
1. Which version of ambari is it? : Version2.5.1.0
2. Is this the default File View instance or you created one. If custom File View instance then please share the details of the view configuration. : Its default .
3. By any chance do you notice any additional WARN / ERROR in ambari server log?
Error in log :
18 Aug 2017 06:03:58,495 ERROR [ambari-client-thread-28] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
org.apache.ambari.server.view.IllegalClusterException: Failed to get cluster information associated with this view instance
at org.apache.ambari.server.view.ViewRegistry.getCluster(ViewRegistry.java:931)
at org.apache.ambari.server.view.ViewContextImpl.getCluster(ViewContextImpl.java:370)
at org.apache.ambari.server.view.ViewContextImpl.getPropertyValues(ViewContextImpl.java:437)
at org.apache.ambari.server.view.ViewContextImpl.getProperties(ViewContextImpl.java:171)
at org.apache.ambari.view.commons.hdfs.ViewPropertyHelper.getViewConfigs(ViewPropertyHelper.java:36)
at org.apache.ambari.view.filebrowser.FileBrowserService.getViewConfigs(FileBrowserService.java:52)
at org.apache.ambari.view.filebrowser.FileBrowserService.help(FileBrowserService.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Caused by: org.apache.ambari.server.ClusterNotFoundException: Cluster not found, clusterId=2
at org.apache.ambari.server.state.cluster.ClustersImpl.getCluster(ClustersImpl.java:290)
at org.apache.ambari.server.view.ViewRegistry.getCluster(ViewRegistry.java:928)
... 102 more
Created 08-18-2017 09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Team ,
any update on this ?
Best regards
~Kishore
Created 08-18-2017 09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you set proxyuser in the Ambari UI-->HDFS --> Configs--> Advanced
hadoop.proxyuser.root.groups=* hadoop.proxyuser.root.hosts=*
if the ambari is being run as root
Created 08-18-2017 09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not its not running as root .
Created 08-18-2017 10:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then substitute the root with that user !
Created 08-18-2017 09:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following error does not looks good:
18 Aug 2017 06:03:58,495 ERROR [ambari-client-thread-28] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container org.apache.ambari.server.view.IllegalClusterException: Failed to get cluster information associated with this view instance
.
I will suggest you to try creating a new Instance of File View and then test again.
Ambari UI --> admin (Drop Down) --> Manage Ambari --> Views --> FILES --> Create Instance (Button)
Specify the "Instance Name*, Display Name* and Description*" and then try accessing that view to see if that works.
.
.
Created 08-18-2017 09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One thing to add on , the node where my Ambari sever is running is not a part of cluster . Will that lead this issue ?
Created 05-14-2020 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Jay,
Thanks for your answer here the same work for me as well.
But, Can you also explain what can be the most possible reason behind this. And how come creating a new file view resolve it?
