Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

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(


Super Guru

@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.


@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 🙂