<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari hive view NullPointerException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152538#M115005</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2961/marguskiting.html" nodeid="2961"&gt;@Margus Kiting&lt;/A&gt; I have accepted this answer. Thanks for the final feedback!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2016 18:00:38 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-23T18:00:38Z</dc:date>
    <item>
      <title>Ambari hive view NullPointerException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152534#M115001</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having weird problem with my Ambari Hive view. After I execute query against one of my table in Hive View, I'm getting&lt;/P&gt;&lt;P&gt;E090NullPointerException error. The same query from hive command line executes fine and gives proper output.&lt;/P&gt;&lt;P&gt;Exception output below:&lt;/P&gt;&lt;PRE&gt; java.lang.NullPointerException

java.lang.NullPointerException
	at org.apache.ambari.view.hive.resources.jobs.atsJobs.ATSParser.getHiveQueryIdByOperationId(ATSParser.java:87)
	at org.apache.ambari.view.hive.resources.jobs.Aggregator.readATSJob(Aggregator.java:129)
	at org.apache.ambari.view.hive.resources.jobs.JobService.jsonObjectFromJob(JobService.java:123)
	at org.apache.ambari.view.hive.resources.jobs.JobService.create(JobService.java:420)
	at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter(AmbariAuthorizationFilter.java:196)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.java:72)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:47)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSecurityHeaderFilter.java:109)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSecurityHeaderFilter.java:109)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
	at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:216)
	at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:205)
	at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.java:139)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM test LIMIT 100;&lt;/PRE&gt;&lt;P&gt;We are using Ambari version 2.2.0.0 with hdp 2.4.5.0-3485 on Centos 7.2 and jdk-1.8.51.&lt;/P&gt;&lt;P&gt;Thank You in advance.&lt;/P&gt;&lt;P&gt;Margus&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 23:43:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152534#M115001</guid>
      <dc:creator>margus_kiting</dc:creator>
      <dc:date>2016-02-22T23:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari hive view NullPointerException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152535#M115002</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2961/marguskiting.html" nodeid="2961"&gt;@Margus Kiting&lt;/A&gt; the only thing that strikes me is that you're using Centos 7.2 which is not yet supported. What happens if you try this in a different browser?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 23:45:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152535#M115002</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-22T23:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari hive view NullPointerException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152536#M115003</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; According to the ambari documentation, Centos 7.x is supported, so 7.2 version should not be showstopper. &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_operating_systems_requirements.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_operating_systems_requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also tried running the same hive query in hive view opened in separate web browser and the result was exactly the same: got java null pointer exception. For testing purposes, I'll try installing small lab cluster to centos 7.1 and see if the problem persists.&lt;/P&gt;&lt;P&gt;Margus&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:58:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152536#M115003</guid>
      <dc:creator>margus_kiting</dc:creator>
      <dc:date>2016-02-23T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari hive view NullPointerException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152537#M115004</link>
      <description>&lt;P&gt;I think I found out what was the problem. &lt;/P&gt;&lt;P&gt;Version of JAVA was a bit higher than we were using in our environment, so I updated java to our latest version 1.8.70, restarted all necessary services and it solved the problem. I'm able to run queries from Hive view again.&lt;/P&gt;&lt;P&gt;Thanks for pointing me to right direction.&lt;/P&gt;&lt;P&gt;Margus&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 17:58:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152537#M115004</guid>
      <dc:creator>margus_kiting</dc:creator>
      <dc:date>2016-02-23T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari hive view NullPointerException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152538#M115005</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2961/marguskiting.html" nodeid="2961"&gt;@Margus Kiting&lt;/A&gt; I have accepted this answer. Thanks for the final feedback!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:00:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-hive-view-NullPointerException/m-p/152538#M115005</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-23T18:00:38Z</dc:date>
    </item>
  </channel>
</rss>

