<?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: putHive3Streaming Error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215033#M84536</link>
    <description>&lt;P&gt;Even though it's managed by Hive, unless Hive is performing tasks as the Hive user (which here it is not), I believe Shu is right and you'll likely need an HDFS policy in Ranger to allow user nifi to access the hive warehouse. &lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 00:41:27 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2018-10-25T00:41:27Z</dc:date>
    <item>
      <title>putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215030#M84533</link>
      <description>&lt;P&gt;
 I made a flow to put csv data on hive. First I put files on HDFS and then create a hive external table. It's worked.&lt;/P&gt;&lt;P&gt;
 Now I'm trying putHive3Streaming to insert CSV data on hive internal table, but I'm getting errors:&lt;/P&gt;&lt;P&gt;
 &lt;STRONG&gt;Table DDL (I removed some details) for putHive3Streaming&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;CREATE TABLE &amp;lt;TABLE NAME&amp;gt;(
        &amp;lt;field&amp;gt; STRING,
        ...)
    CLUSTERED BY (message) INTO 5 BUCKETS
    STORED as ORC
    TBLPROPERTIES("transactional"="true")
&lt;/PRE&gt;&lt;P&gt;
 &lt;STRONG&gt;putHive3Streaming config&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="92981-erro1.png" style="width: 764px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16359i0E29030F35CBDC8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="92981-erro1.png" alt="92981-erro1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
 &lt;STRONG&gt;Controller Service Config&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="92982-erro2.png" style="width: 771px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16360i4758C519B7EBEEA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="92982-erro2.png" alt="92982-erro2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
 &lt;STRONG&gt;Error message&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;2018-10-23 14:26:25,263 WARN [Timer-Driven Process Thread-3] o.a.h.streaming.HiveStreamingConnection Unable to validate the table for connection: { metastore-uri: thrift://&amp;lt;HOST&amp;gt;, database: &amp;lt;DB&amp;gt;, table: &amp;lt;TABLE&amp;gt;, partitioned-table: false, dynamic-partitioning: false, username: nifi, secure-mode: false, record-writer: HiveRecordWriter, agent-info: NiFi PutHive3Streaming [a125ea2d-0166-1000-ffff-ffffd045c94a] thread 74[Timer-Driven Process Thread-3] } org.apache.hadoop.hive.metastore.api.MetaException: org.apache.hadoop.security.AccessControlException: Permission denied: user=nifi, access=EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------ at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:399) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:315) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:242) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:193) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:606) at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1799) at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1817) at org.apache.hadoop.hdfs.server.namenode.FSDirectory.resolvePath(FSDirectory.java:674) at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:114) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3106) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1154) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:966) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_req_result$get_table_req_resultStandardScheme.read(ThriftHiveMetastore.java) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_req_result$get_table_req_resultStandardScheme.read(ThriftHiveMetastore.java) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_req_result.read(ThriftHiveMetastore.java) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:86) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_table_req(ThriftHiveMetastore.java:2079) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_table_req(ThriftHiveMetastore.java:2066) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:1578) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:1570) at sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:208) at com.sun.proxy.$Proxy207.getTable(Unknown Source) at org.apache.hive.streaming.HiveStreamingConnection.validateTable(HiveStreamingConnection.java:401) at org.apache.hive.streaming.HiveStreamingConnection.&amp;lt;init&amp;gt;(HiveStreamingConnection.java:202) at org.apache.hive.streaming.HiveStreamingConnection.&amp;lt;init&amp;gt;(HiveStreamingConnection.java:118) at org.apache.hive.streaming.HiveStreamingConnection$Builder.connect(HiveStreamingConnection.java:332) at org.apache.nifi.processors.hive.PutHive3Streaming.makeStreamingConnection(PutHive3Streaming.java:508) at org.apache.nifi.processors.hive.PutHive3Streaming.onTrigger(PutHive3Streaming.java:413) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1165) at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:203) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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;PRE&gt;2018-10-23 14:26:25,264 ERROR [Timer-Driven Process Thread-3] o.a.n.processors.hive.PutHive3Streaming PutHive3Streaming[id=a125ea2d-0166-1000-ffff-ffffd045c94a] PutHive3Streaming[id=a125ea2d-0166-1000-ffff-ffffd045c94a] failed to process session due to java.lang.NullPointerException; Processor Administratively Yielded for 1 sec: java.lang.NullPointerException java.lang.NullPointerException: null at org.apache.nifi.processors.hive.PutHive3Streaming.onTrigger(PutHive3Streaming.java:447) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1165) at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:203) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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) 2018-10-23 14:26:25,264 WARN [Timer-Driven Process Thread-3] o.a.n.controller.tasks.ConnectableTask Administratively Yielding PutHive3Streaming[id=a125ea2d-0166-1000-ffff-ffffd045c94a] due to uncaught Exception: java.lang.NullPointerException java.lang.NullPointerException: null at org.apache.nifi.processors.hive.PutHive3Streaming.onTrigger(PutHive3Streaming.java:447) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1165) at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:203) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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;</description>
      <pubDate>Sun, 18 Aug 2019 03:23:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215030#M84533</guid>
      <dc:creator>carlosrochacard</dc:creator>
      <dc:date>2019-08-18T03:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215031#M84534</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/97605/carlosrochacardoso.html" nodeid="97605"&gt;@Carlos Cardoso&lt;/A&gt;&lt;P&gt;There is &lt;STRONG&gt;AccessControl&lt;/STRONG&gt; exception in your shared logs..&lt;/P&gt;&lt;PRE&gt;org.apache.hadoop.hive.metastore.api.MetaException: org.apache.hadoop.security.AccessControlException: Permission denied: user=nifi, access=EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------&lt;/PRE&gt;&lt;P&gt;Make sure &lt;STRONG&gt;nifi&lt;/STRONG&gt; user having appropriate permission on this directory "&lt;STRONG&gt;/warehouse/tablespace/managed/hive"&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt; &lt;B&gt;access &lt;/B&gt;to the directory and try to ingest data into table again.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 04:47:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215031#M84534</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-10-24T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215032#M84535</link>
      <description>&lt;P&gt;nifi needs permition on this directory? This is a internal table managed by hive.&lt;/P&gt;&lt;P&gt;I made a policy on ranger and gave permission to nifi insert on this table. I can insert on this table with user nifi using a hive client, but it's not working with the putHive3Streaming processor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/18929/yaswanthmuppireddy.html"&gt;@Shu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:39:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215032#M84535</guid>
      <dc:creator>carlosrochacard</dc:creator>
      <dc:date>2018-10-24T07:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215033#M84536</link>
      <description>&lt;P&gt;Even though it's managed by Hive, unless Hive is performing tasks as the Hive user (which here it is not), I believe Shu is right and you'll likely need an HDFS policy in Ranger to allow user nifi to access the hive warehouse. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:41:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215033#M84536</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-10-25T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215034#M84537</link>
      <description>&lt;P&gt;You are right. I applied the policy and everthing is working now. Thanks &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 19:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215034#M84537</guid>
      <dc:creator>carlosrochacard</dc:creator>
      <dc:date>2018-10-26T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: putHive3Streaming Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215035#M84538</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I have the same problem.&lt;/P&gt;&lt;P&gt;I set the permission to 777 for all users.&lt;/P&gt;&lt;PRE&gt;[nifi@hdp-srv2 ~]$ hdfs dfs -ls /warehouse/tablespace/managed/hive/
Found 3 items
drwxrwxrwx+ &amp;nbsp;- hive hadoop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-27 14:53 /warehouse/tablespace/managed/hive/information_schema.db
drwxrwxrwx+ &amp;nbsp;- hive hadoop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-28 13:45 /warehouse/tablespace/managed/hive/sensor_data
drwxrwxrwx+ &amp;nbsp;- hive hadoop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-27 14:53 /warehouse/tablespace/managed/hive/sys.db
&lt;/PRE&gt;&lt;P&gt;Error still happens.&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.hadoop.hive.metastore.api.MetaException: java.security.AccessControlException: Permission denied: user=nifi, access=READ, inode="/warehouse/tablespace/managed/hive/sensor_data":hive:hadoop:drwxrwxrwx
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 May 2019 22:40:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/putHive3Streaming-Error/m-p/215035#M84538</guid>
      <dc:creator>Changyao</dc:creator>
      <dc:date>2019-05-28T22:40:19Z</dc:date>
    </item>
  </channel>
</rss>

