<?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: hive insert query is failing with following exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169329#M49904</link>
    <description>&lt;P&gt;After installing Atlas and the datanodes in the cluster do not have the log path for hive you get the below stack:&lt;/P&gt;&lt;P&gt;Exception in thread "main"
java.lang.ExceptionInInitializerError&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.forName0(Native Method)&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.forName(Class.java:348)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hive.hook.HiveHook.initialize(HiveHook.java:71)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hive.hook.HiveHook.&amp;lt;init&amp;gt;(HiveHook.java:41)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;/P&gt;&lt;P&gt;  at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.newInstance(Class.java:442)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1386)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1370)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1598)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1291)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1158)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1148)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:217)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:169)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:380)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:315)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:413)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:429)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:718)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:685)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;  at
java.lang.reflect.Method.invoke(Method.java:498)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.util.RunJar.run(RunJar.java:233)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.util.RunJar.main(RunJar.java:148)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;   at
java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.FailedMessagesLogger.getRootLoggerDirectory(FailedMessagesLogger.java:86)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.FailedMessagesLogger.init(FailedMessagesLogger.java:49)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.AtlasHook.&amp;lt;clinit&amp;gt;(AtlasHook.java:77)&lt;/P&gt;&lt;P&gt;  ... 31
more&lt;/P&gt;&lt;P&gt;To resolve this do the following, i.e. create the path for the hive process to dump log files in the cluster:&lt;/P&gt;&lt;P&gt;pdsh -g allhosts  'mkdir -p
/var/hadoop/log/hive/ ; chmod 1777 /var/hadoop/log/hive/ '&lt;/P&gt;&lt;P&gt;# verify&lt;/P&gt;&lt;P&gt;pdsh -g allhosts  'stat
-c"%a %U:%G %N" /var/hadoop/log/hive/ '  | dshbak -c&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 22:13:52 GMT</pubDate>
    <dc:creator>jim_mullaney</dc:creator>
    <dc:date>2018-09-04T22:13:52Z</dc:date>
    <item>
      <title>hive insert query is failing with following exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169326#M49901</link>
      <description>&lt;P&gt;Exception in thread "main" java.lang.ExceptionInInitializerError 
at java.lang.Class.forName0(Native Method) 
at java.lang.Class.forName(Class.java:348) 
at org.apache.atlas.hive.hook.HiveHook.initialize(HiveHook.java:71) 
at org.apache.atlas.hive.hook.HiveHook.&amp;lt;init&amp;gt;(HiveHook.java:41) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) 
at java.lang.Class.newInstance(Class.java:442) 
at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60) 
at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1384) 
at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1368) 
at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1595) 
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1289) 
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1156) 
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1146) 
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216) 
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168) 
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379) 
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739) 
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684) 
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:497) 
at org.apache.hadoop.util.RunJar.run(RunJar.java:233) 
at org.apache.hadoop.util.RunJar.main(RunJar.java:148) 
Caused by: java.lang.NullPointerException 
at org.apache.atlas.hook.AtlasHook.&amp;lt;clinit&amp;gt;(AtlasHook.java:73)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 01:32:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169326#M49901</guid>
      <dc:creator>abhishekchaudha</dc:creator>
      <dc:date>2016-12-23T01:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: hive insert query is failing with following exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169327#M49902</link>
      <description>&lt;P&gt;remove property ‘org.apache.atlas.hive.hook.HiveHook’ from ‘hive.exec.post.hooks’ in hive-site.xml, and restart all affected components&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 01:33:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169327#M49902</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-23T01:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: hive insert query is failing with following exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169328#M49903</link>
      <description>&lt;P&gt;I got this problem once, and it was because the Hive-client component was not installed on the server I was running hive command from.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 02:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169328#M49903</guid>
      <dc:creator>benoit</dc:creator>
      <dc:date>2017-07-16T02:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: hive insert query is failing with following exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169329#M49904</link>
      <description>&lt;P&gt;After installing Atlas and the datanodes in the cluster do not have the log path for hive you get the below stack:&lt;/P&gt;&lt;P&gt;Exception in thread "main"
java.lang.ExceptionInInitializerError&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.forName0(Native Method)&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.forName(Class.java:348)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hive.hook.HiveHook.initialize(HiveHook.java:71)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hive.hook.HiveHook.&amp;lt;init&amp;gt;(HiveHook.java:41)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;/P&gt;&lt;P&gt;  at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;/P&gt;&lt;P&gt;  at
java.lang.Class.newInstance(Class.java:442)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1386)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1370)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1598)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1291)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1158)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1148)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:217)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:169)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:380)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:315)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:413)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:429)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:718)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:685)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;  at
java.lang.reflect.Method.invoke(Method.java:498)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.util.RunJar.run(RunJar.java:233)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.util.RunJar.main(RunJar.java:148)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;   at
java.io.File.&amp;lt;init&amp;gt;(File.java:277)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.FailedMessagesLogger.getRootLoggerDirectory(FailedMessagesLogger.java:86)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.FailedMessagesLogger.init(FailedMessagesLogger.java:49)&lt;/P&gt;&lt;P&gt;  at
org.apache.atlas.hook.AtlasHook.&amp;lt;clinit&amp;gt;(AtlasHook.java:77)&lt;/P&gt;&lt;P&gt;  ... 31
more&lt;/P&gt;&lt;P&gt;To resolve this do the following, i.e. create the path for the hive process to dump log files in the cluster:&lt;/P&gt;&lt;P&gt;pdsh -g allhosts  'mkdir -p
/var/hadoop/log/hive/ ; chmod 1777 /var/hadoop/log/hive/ '&lt;/P&gt;&lt;P&gt;# verify&lt;/P&gt;&lt;P&gt;pdsh -g allhosts  'stat
-c"%a %U:%G %N" /var/hadoop/log/hive/ '  | dshbak -c&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 22:13:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-insert-query-is-failing-with-following-exception/m-p/169329#M49904</guid>
      <dc:creator>jim_mullaney</dc:creator>
      <dc:date>2018-09-04T22:13:52Z</dc:date>
    </item>
  </channel>
</rss>

