<?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 Zeppelin hive null point exception HDP 2.4 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124670#M87414</link>
    <description>&lt;P&gt;Aggregate functions on hive queries are not working for me on Zeppelin HDP 2.4 cluster. Zeppelin version: zeppelin-server-0.6.0.2.4.0.0-169.jar&lt;/P&gt;&lt;P&gt;I run "show tables" and it works fine. I am able to delete, create and load tables. I am able to select * from table.   However if I run a any select count(*), sum(*), etc query it immeditaly fails:&lt;/P&gt;&lt;PRE&gt;
java.lang.NullPointerException
	at org.apache.zeppelin.hive.HiveInterpreter.getConnection(HiveInterpreter.java:184)
	at org.apache.zeppelin.hive.HiveInterpreter.getStatement(HiveInterpreter.java:204)
	at org.apache.zeppelin.hive.HiveInterpreter.executeSql(HiveInterpreter.java:233)
	at org.apache.zeppelin.hive.HiveInterpreter.interpret(HiveInterpreter.java:328)
	at org.apache.zeppelin.interpreter.ClassloaderInterpreter.interpret(ClassloaderInterpreter.java:57)
	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:93)
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:295)
	at org.apache.zeppelin.scheduler.Job.run(Job.java:171)
	at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;P&gt;I ran the same query on beeline and it returned results fine.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2016 11:16:54 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-03-14T11:16:54Z</dc:date>
    <item>
      <title>Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124670#M87414</link>
      <description>&lt;P&gt;Aggregate functions on hive queries are not working for me on Zeppelin HDP 2.4 cluster. Zeppelin version: zeppelin-server-0.6.0.2.4.0.0-169.jar&lt;/P&gt;&lt;P&gt;I run "show tables" and it works fine. I am able to delete, create and load tables. I am able to select * from table.   However if I run a any select count(*), sum(*), etc query it immeditaly fails:&lt;/P&gt;&lt;PRE&gt;
java.lang.NullPointerException
	at org.apache.zeppelin.hive.HiveInterpreter.getConnection(HiveInterpreter.java:184)
	at org.apache.zeppelin.hive.HiveInterpreter.getStatement(HiveInterpreter.java:204)
	at org.apache.zeppelin.hive.HiveInterpreter.executeSql(HiveInterpreter.java:233)
	at org.apache.zeppelin.hive.HiveInterpreter.interpret(HiveInterpreter.java:328)
	at org.apache.zeppelin.interpreter.ClassloaderInterpreter.interpret(ClassloaderInterpreter.java:57)
	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:93)
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:295)
	at org.apache.zeppelin.scheduler.Job.run(Job.java:171)
	at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;P&gt;I ran the same query on beeline and it returned results fine.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 11:16:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124670#M87414</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-03-14T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124671#M87415</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486" target="_blank"&gt;@Sunile Manjee&lt;/A&gt;&lt;P&gt;I tried aggregate functions with  Zeppelin + Sandbox 2.4 and it worked for me. &lt;/P&gt;&lt;P&gt;Are you using %sql interpreter, %pyspark or scala interpreter? Could you please paste full command you are trying to execute?&lt;/P&gt;&lt;P&gt;See my screenshot with %sql example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2829-screen-shot-2016-03-15-at-234219.png" style="width: 2810px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22713iEA461D74DE6286F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2829-screen-shot-2016-03-15-at-234219.png" alt="2829-screen-shot-2016-03-15-at-234219.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:13:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124671#M87415</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2019-08-19T10:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124672#M87416</link>
      <description>&lt;P style="margin-left: 40px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; That is interesting.  I am doing it on a hdp 2.4 cluster (not sandbox).  curious now....&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:14:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124672#M87416</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-03-16T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124673#M87417</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; I am using %sql&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:23:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124673#M87417</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-03-16T10:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124674#M87418</link>
      <description>&lt;P style="margin-left: 40px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; I found the issue.  I had to restart the interpertur and rebind the variables in zeppelin.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 00:50:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124674#M87418</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-04-01T00:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124675#M87419</link>
      <description>&lt;P&gt;Hello sunile&lt;/P&gt;&lt;P&gt;Zeppelin in 2.4 has a bug that has been fixed since then. If you issue any query with a "()" the new parser for prefix will get lost. In your log if your query is "%hive select count(*)" from table you will see the query being sent look like "elect count(*) from table"&lt;/P&gt;&lt;P&gt;This is because the parser looks for a "(prefix_name)" and here mistakes "(*)" for a prefix. &lt;/P&gt;&lt;P&gt;The workaround is use %hive(default) or wait for next release&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:31:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124675#M87419</guid>
      <dc:creator>nmaillard1</dc:creator>
      <dc:date>2016-04-12T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin hive null point exception HDP 2.4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124676#M87420</link>
      <description>&lt;P&gt;I'm getting same error in HDP 2.4 sandbox, if use %hive on Zeppelin and then aggregate functions are not working... &lt;/P&gt;&lt;PRE&gt;%hive 

select count(*) from  health_table

java.lang.NullPointerException 

at org.apache.zeppelin.hive.HiveInterpreter.getConnection(HiveInterpreter.java:184)
at org.apache.zeppelin.hive.HiveInterpreter.getStatement(HiveInterpreter.java:204)
at org.apache.zeppelin.hive.HiveInterpreter.executeSql(HiveInterpreter.java:233)
at org.apache.zeppelin.hive.HiveInterpreter.interpret(HiveInterpreter.java:328)
at org.apache.zeppelin.interpreter.ClassloaderInterpreter.interpret(ClassloaderInterpreter.java:57)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:93)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:295)
at org.apache.zeppelin.scheduler.Job.run(Job.java:171)
at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;P&gt;This issue resolved when i use %sql.&lt;/P&gt;&lt;P&gt;I know your issue is not to related HDP sandbox 2.4 but may be this comment help someone using %hive on HDP sandbox 2.4. &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 19:17:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zeppelin-hive-null-point-exception-HDP-2-4/m-p/124676#M87420</guid>
      <dc:creator>mkumar13</dc:creator>
      <dc:date>2016-06-09T19:17:59Z</dc:date>
    </item>
  </channel>
</rss>

