Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
Cloudera Employee

PROBLEM : Hive view errors out with null pointer exception from Stand alone ambari view server.

ERROR :

java.lang.NullPointerException
at org.apache.ambari.view.hive2.resources.jobs.atsJobs.ATSParser.getHiveQueryIdFromJson(ATSParser.java:113)
at org.apache.ambari.view.hive2.resources.jobs.atsJobs.ATSParser.getHiveQueryIdByOperationId(ATSParser.java:107)
at org.apache.ambari.view.hive2.resources.jobs.Aggregator.readATSJob(Aggregator.java:260)
at org.apache.ambari.view.hive2.resources.jobs.JobService.jsonObjectFromJob(JobService.java:161)
at org.apache.ambari.view.hive2.resources.jobs.JobService.getOne(JobService.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

ROOT CAUSE : Stand alone ambari host name missing in yarn.timeline-service.http-authentication.proxyuser.ambari-server.

WORKAROUND / RESOLUTION : Update below property in YARN configs and make the value to *:

yarn.timeline-service.http-authentication.proxyuser.ambari-server-<CLUSTER_NAME>.hosts=*
yarn.timeline-service.http-authentication.proxyuser.ambari-server-<CLUSTER_NAME>.users=*
yarn.timeline-service.http-authentication.proxyuser.ambari-server-<CLUSTER_NAME>.groups=* 

Please restart the YARN service and try accessing hive view from standalone view server.

1,498 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎03-28-2017 04:49 PM
Updated by:
 
Contributors
Top Kudoed Authors