<?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: Getting ' Error while compiling statement: FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException' error executing query in hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/340421#M233330</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error can occures if you have deployed the "Hive Server 2" and "WebHCat" roles under the Hive Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Can you stop and delete the "Hive Server 2" and "WebHCat" instances from Cloudera Manager -&amp;gt; Hive -&amp;gt; Instances?&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Restart if any stale configurations are present in the cluster and try the hive query.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 10:32:46 GMT</pubDate>
    <dc:creator>ChethanYM</dc:creator>
    <dc:date>2022-04-04T10:32:46Z</dc:date>
    <item>
      <title>Error while compiling statement: FAILED: Hive Internal Error:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/340035#M233245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm facing issue while executing query (show databases;) on hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following is my setup:&lt;/P&gt;
&lt;P&gt;Cluster : CDP-7.1.7&lt;/P&gt;
&lt;P&gt;Components Installed : HDFS, Yarn, Yarn Queue Manager, Oozie, Schema Registry, Hive, Ziplin, Spark, Tez and Zookeeper.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have accessed hive using beeline, but when I tried to execute 'show databases' it is giving following error :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR : FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:50)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.getPipeline(AbstractHiveExecHookContext.java:86)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.run(AbstractHiveExecHookContext.java:69)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.runPostExecHooks(HookRunner.java:278)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.postExecutionActions(Executor.java:477)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:111)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:749)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:504)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:498)&lt;BR /&gt;at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:166)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:88)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:327)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:345)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:43)&lt;BR /&gt;... 24 more&lt;BR /&gt;)&lt;BR /&gt;org.apache.hadoop.hive.ql.metadata.HiveException: Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:50)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.getPipeline(AbstractHiveExecHookContext.java:86)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.run(AbstractHiveExecHookContext.java:69)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.runPostExecHooks(HookRunner.java:278)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.postExecutionActions(Executor.java:477)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:111)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:749)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:504)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:498)&lt;BR /&gt;at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:166)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:88)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:327)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:345)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:43)&lt;BR /&gt;... 24 more&lt;/P&gt;
&lt;P&gt;at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:302)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.runPostExecHooks(HookRunner.java:278)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.postExecutionActions(Executor.java:477)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:111)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:749)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:504)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:498)&lt;BR /&gt;at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:166)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:88)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:327)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:345)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.lang.RuntimeException: java.lang.NullPointerException&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:50)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.getPipeline(AbstractHiveExecHookContext.java:86)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.run(AbstractHiveExecHookContext.java:69)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)&lt;BR /&gt;... 21 more&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:43)&lt;BR /&gt;... 24 more&lt;/P&gt;
&lt;P&gt;INFO : Completed executing command(queryId=hive_20220330193703_a3c2039f-3446-4d1c-8ed6-b4e88ac77771); Time taken: 0.051 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;Error: Error while compiling statement: FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:50)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.getPipeline(AbstractHiveExecHookContext.java:86)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.AbstractHiveExecHookContext.run(AbstractHiveExecHookContext.java:69)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296)&lt;BR /&gt;at org.apache.hadoop.hive.ql.HookRunner.runPostExecHooks(HookRunner.java:278)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.postExecutionActions(Executor.java:477)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:111)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:749)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:504)&lt;BR /&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:498)&lt;BR /&gt;at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:166)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:88)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:327)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)&lt;BR /&gt;at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:345)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;BR /&gt;at com.cloudera.navigator.audit.hive.HiveAuditPipeline.getInstance(HiveAuditPipeline.java:43)&lt;BR /&gt;... 24 more&lt;BR /&gt;) (state=08S01,code=12)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help me this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/340035#M233245</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2026-04-21T07:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting ' Error while compiling statement: FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException' error executing query in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/340421#M233330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error can occures if you have deployed the "Hive Server 2" and "WebHCat" roles under the Hive Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Can you stop and delete the "Hive Server 2" and "WebHCat" instances from Cloudera Manager -&amp;gt; Hive -&amp;gt; Instances?&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Restart if any stale configurations are present in the cluster and try the hive query.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 10:32:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/340421#M233330</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2022-04-04T10:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting ' Error while compiling statement: FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking PostHook. hooks: java.lang.RuntimeException: java.lang.NullPointerException' error executing query in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/364164#M239115</link>
      <description>&lt;P&gt;After following the steps above, the problem still exists.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 16:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/364164#M239115</guid>
      <dc:creator>ville</dc:creator>
      <dc:date>2023-02-18T16:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while compiling statement: FAILED: Hive Internal Error:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/364796#M239235</link>
      <description>&lt;P&gt;Could you please share screenshots of the Instance tab from both &lt;STRONG&gt;Hive&lt;/STRONG&gt; and &lt;STRONG&gt;Hive on Tez&lt;/STRONG&gt; services? Based on our experience, the following action should resolve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop and delete the "HiveServer2" and "WebHCat" instances from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Cloudera Manager&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Hive&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Instances&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Check that the role "HiveServer2" is present in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Cloudera Manager&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Hive on Tez&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Instances&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Verify the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Configuration&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;page for '&lt;STRONG&gt;Hive on Tez&lt;/STRONG&gt;'; ensure that '&lt;STRONG&gt;Hive Metastore Connector&lt;/STRONG&gt;' is pointed at the Hive service that is running the Hive Metastore&lt;/LI&gt;&lt;LI&gt;Restart the stale services&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 28 Feb 2023 09:07:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-compiling-statement-FAILED-Hive-Internal-Error/m-p/364796#M239235</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-02-28T09:07:10Z</dc:date>
    </item>
  </channel>
</rss>

