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

hive view NullPointerException

hive view NullPointerException


I'm getting below error while running select query in hive view. I checked proxy settings and evrything looks fine, this is a custom hive view on secured cluster and SSL hadoop.

Can anyone suggest where to look?.



at sun.reflect.GeneratedMethodAccessor561.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(

at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(

at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(

at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(

at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(

at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(

at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(


Re: hive view NullPointerException

@Jitendra Yadav

Atlas in the mix? Any data tagged?

This indicates that one of the tables involved in the view join where the field is involved in the join is passing a null value when a not null is expected. I've seen this type of behavior with tagged data on base tables for the view.

Is there more in hive log? The error excerpt above is just a symptom of passing a null object when one is required, not very helpful.

To test the assumption presented above you could test whether you can query step by step the base tables with the same where clause, but without the join.


Re: hive view NullPointerException

@Constantin Stanca

There was no error in hive/hdfs/yarn etc. during that time frame, even I tried to restart all the services but didn't helped.

But when I restarted Ambari server the issue got resolved, don't know how this exception is related to ambari restart :)

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