Support Questions
Find answers, ask questions, and share your expertise

Service 'hdfs' check failed-From Ambari

Solved Go to solution
Highlighted

Service 'hdfs' check failed-From Ambari

Contributor

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)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Service 'hdfs' check failed-From Ambari

Contributor

@Geoffrey Shelton Okot

Now all works . After deleting the old view .

Thanks a lot @Geoffrey Shelton Okot for helping and answering question very prompt .

View solution in original post

38 REPLIES 38
Highlighted

Re: Service 'hdfs' check failed-From Ambari

Super Mentor

@Kishore Kumar

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?

.

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Contributor

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

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Contributor

hi Team ,

any update on this ?

Best regards

~Kishore

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Mentor

@Kishore Kumar

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

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Contributor

Not its not running as root .

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Mentor

@Kishore Kumar

Then substitute the root with that user !

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Super Mentor

@Kishore Kumar

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.

.

.

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Contributor

One thing to add on , the node where my Ambari sever is running is not a part of cluster . Will that lead this issue ?

Highlighted

Re: Service 'hdfs' check failed-From Ambari

Cloudera Employee

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?