Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.lang.NullPointerException at "Files View" in Ambari

java.lang.NullPointerException at "Files View" in Ambari

New Contributor

Hi,

i am using Ambari 2.6 and HDP-2.6.3.0 and after a "successful" installation of a 3-node cluster (1 master and 2 slaves), i am getting several anoying problems with the views. For example, the "Files View" is returning me the following error:

        Service 'hdfs' check failed:
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:71)
	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)

'I've already made the following configuration:

### i did the installation as root user

hadoop.proxyuser.root.groups=*
hadoop.proxyuser.root.hosts=*

hadoop.proxyuser.hdfs.groups=*
hadoop.proxyuser.hdfs.hosts=*
hadoop.proxyuser.hdp.groups=*
hadoop.proxyuser.hdp.hosts=*

At the HDFS level, i've created the required directories:

drwxr-xr-x - admin hadoop 0 2017-12-07 10:08 /user/admin
drwxrwx--- - ambari-qa hadoop 0 2017-12-07 01:47 /user/ambari-qa
drwxr-xr-x - hcat hadoop 0 2017-12-07 01:50 /user/hcat
drwxr-xr-x - hdfs hadoop 0 2017-12-07 10:20 /user/hdfs
drwxr-xr-x - hdp hadoop 0 2017-12-07 10:02 /user/hdp
drwxr-xr-x - hive hadoop 0 2017-12-07 02:35 /user/hive
drwxr-xr-x - root hadoop 0 2017-12-07 10:00 /user/root
drwxrwxr-x - spark hadoop 0 2017-12-07 01:47 /user/spark

So, what am i doing wrong here?

Thanks for the attention.

2 REPLIES 2

Re: java.lang.NullPointerException at "Files View" in Ambari

Rising Star

Can you paste a screeenshot of the view config ?

Re: java.lang.NullPointerException at "Files View" in Ambari

New Contributor

Hi,

i've created new Files View and Hive View with the default values and now it is working properly.

Don't have an account?
Coming from Hortonworks? Activate your account here