<?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 Flume Hive sink error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120840#M30779</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm trying to ingest data with flume into hive table using appropriate hive sink. The table is partitioned with column date(e.g. "2016/05/26") and clustered into 5 buckets. Also all requirements for hive streaming are specified as described in &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Streaming+Data+Ingest#StreamingDataIngest-StreamingRequirements"&gt;StreamingRequirements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But all the time I get the same error:&lt;/P&gt;&lt;P&gt;FAILED: Hive Internal Error: java.lang.ClassNotFoundException(org.apache.atlas.hive.hook.HiveHook)
java.lang.ClassNotFoundException: org.apache.atlas.hive.hook.HiveHook
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60)
   at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1376)
   at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1360)
   at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1589)
   at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1262)
   at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1126)
   at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1116)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.runDDL(HiveEndPoint.java:456)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.createPartitionIfNotExists(HiveEndPoint.java:421)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:280)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:246)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnectionImpl(HiveEndPoint.java:183)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:160)
   at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:376)
   at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:373)
   at org.apache.flume.sink.hive.HiveWriter$11.call(HiveWriter.java:425)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   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;/P&gt;&lt;P&gt;I use hdp 2.4.2 sandbox with default flume version.
How can I resolve this issue?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jun 2016 08:30:23 GMT</pubDate>
    <dc:creator>n_kavtur</dc:creator>
    <dc:date>2016-06-05T08:30:23Z</dc:date>
    <item>
      <title>Flume Hive sink error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120840#M30779</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm trying to ingest data with flume into hive table using appropriate hive sink. The table is partitioned with column date(e.g. "2016/05/26") and clustered into 5 buckets. Also all requirements for hive streaming are specified as described in &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Streaming+Data+Ingest#StreamingDataIngest-StreamingRequirements"&gt;StreamingRequirements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But all the time I get the same error:&lt;/P&gt;&lt;P&gt;FAILED: Hive Internal Error: java.lang.ClassNotFoundException(org.apache.atlas.hive.hook.HiveHook)
java.lang.ClassNotFoundException: org.apache.atlas.hive.hook.HiveHook
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60)
   at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1376)
   at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1360)
   at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1589)
   at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1262)
   at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1126)
   at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1116)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.runDDL(HiveEndPoint.java:456)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.createPartitionIfNotExists(HiveEndPoint.java:421)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:280)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:246)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnectionImpl(HiveEndPoint.java:183)
   at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:160)
   at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:376)
   at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:373)
   at org.apache.flume.sink.hive.HiveWriter$11.call(HiveWriter.java:425)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   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;/P&gt;&lt;P&gt;I use hdp 2.4.2 sandbox with default flume version.
How can I resolve this issue?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2016 08:30:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120840#M30779</guid>
      <dc:creator>n_kavtur</dc:creator>
      <dc:date>2016-06-05T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flume Hive sink error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120841#M30780</link>
      <description>&lt;P&gt;it looks that atlas hook is enabled in your sandbox, could you please check your hive-site.xml change hive.exec.post.hooks as follows if you dont want to use atlas hooks&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;

&amp;lt;name&amp;gt;hive.exec.post.hooks&amp;lt;/name&amp;gt;

&amp;lt;value&amp;gt;org.apache.hadoop.hive.ql.hooks.ATSHook, org.apache.atlas.hive.hook.HiveHook&amp;lt;/value&amp;gt;

&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;

&amp;lt;name&amp;gt;hive.exec.post.hooks&amp;lt;/name&amp;gt;

&amp;lt;value&amp;gt;org.apache.hadoop.hive.ql.hooks.ATSHook&amp;lt;/value&amp;gt;

&amp;lt;/property&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Jun 2016 13:26:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120841#M30780</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-05T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flume Hive sink error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120842#M30781</link>
      <description>&lt;P&gt;thanks, that fixed the issue!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2016 20:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-Hive-sink-error/m-p/120842#M30781</guid>
      <dc:creator>n_kavtur</dc:creator>
      <dc:date>2016-06-05T20:29:58Z</dc:date>
    </item>
  </channel>
</rss>

