<?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 PutHiveStreaming Nifi processor; various errors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111137#M73985</link>
    <description>&lt;P&gt;I'm trying to stream data to Hive with the PutStreamingHive Nifi processor.&lt;/P&gt;&lt;P&gt;I saw this post: &lt;A target="_blank" href="https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html&lt;/A&gt; and can confirm that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;org.apache.hadoop.hive.ql.lockmgr.DbTxnManager is the transaction manager&lt;/LI&gt;&lt;LI&gt;ACID transactions run compactor is enabled&lt;/LI&gt;&lt;LI&gt;There are threads available for the compactor&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I created an ORC backed Hive table:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE `streaming_messages`(
  `message` string, 
   etc...)
CLUSTERED BY (message) INTO 5 BUCKETS
STORED AS ORC
LOCATION
  'hdfs://hadoop01.woolford.io:8020/apps/hive/warehouse/mydb.db/streaming_messages'
TBLPROPERTIES('transactional'='true');
&lt;/PRE&gt;&lt;P&gt;I then created a `PutStreamingHive` processor that takes messages Avro messages and writes them to a Hive table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8235-puthivestreaming.png" style="width: 1576px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23272iA0532AE183819BBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8235-puthivestreaming.png" alt="8235-puthivestreaming.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I notice that the Nifi processor uses Thrift to send data to Hive. There are some errors in nifi-app.log and hivemetastore.log.&lt;/P&gt;&lt;P&gt;Stacktrace from nifi-app.log:&lt;/P&gt;&lt;PRE&gt;2016-10-03 23:40:25,348 ERROR [Timer-Driven Process Thread-8] o.a.n.processors.hive.PutHiveStreaming 
org.apache.nifi.util.hive.HiveWriter$ConnectFailure: Failed connecting to EndPoint {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.nifi.util.hive.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:80) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.util.hive.HiveUtils.makeHiveWriter(HiveUtils.java:45) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.makeHiveWriter(PutHiveStreaming.java:827) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.getOrCreateWriter(PutHiveStreaming.java:738) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.lambda$onTrigger$4(PutHiveStreaming.java:462) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1880) ~[na:na]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1851) ~[na:na]
        at org.apache.nifi.processors.hive.PutHiveStreaming.onTrigger(PutHiveStreaming.java:389) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1064) ~[na:na]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) ~[na:na]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) ~[na:na]
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) ~[na:na]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_77]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_77]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_77]
Caused by: org.apache.nifi.util.hive.HiveWriter$TxnBatchFailure: Failed acquiring Transaction Batch from EndPoint: {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.nifi.util.hive.HiveWriter.nextTxnBatch(HiveWriter.java:255) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.util.hive.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:74) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        ... 19 common frames omitted
Caused by: org.apache.hive.hcatalog.streaming.TransactionError: Unable to acquire lock on {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:578) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransaction(HiveEndPoint.java:547) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        at org.apache.nifi.util.hive.HiveWriter.nextTxnBatch(HiveWriter.java:252) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        ... 20 common frames omitted
Caused by: org.apache.thrift.transport.TTransportException: null
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_lock(ThriftHiveMetastore.java:3906) ~[hive-metastore-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.lock(ThriftHiveMetastore.java:3893) ~[hive-metastore-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.lock(HiveMetaStoreClient.java:1863) ~[hive-metastore-1.2.1.jar:1.2.1]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:152) ~[hive-metastore-1.2.1.jar:1.2.1]
        at com.sun.proxy.$Proxy148.lock(Unknown Source) ~[na:na]
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:573) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        ... 22 common frames omitted
&lt;/PRE&gt;&lt;P&gt;Stacktrace from hivemetastore.log:&lt;/P&gt;&lt;PRE&gt;2016-10-03 23:40:24,322 ERROR [pool-5-thread-114]: metastore.RetryingHMSHandler (RetryingHMSHandler.java:invokeInternal(195)) - java.lang.IllegalStateException: Unexpected DataOperationType: UNSET agentInfo=Unknown txnid:98201
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.enqueueLockWithRetry(TxnHandler.java:938)
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.lock(TxnHandler.java:814)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.lock(HiveMetaStore.java:5751)
        at sun.reflect.GeneratedMethodAccessor28.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.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:139)
        at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:97)
        at com.sun.proxy.$Proxy12.lock(Unknown Source)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$lock.getResult(ThriftHiveMetastore.java:11860)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$lock.getResult(ThriftHiveMetastore.java:11844)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:110)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:106)
        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:1724)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:118)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        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;Do you have any suggestions to resolve this?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 11:21:57 GMT</pubDate>
    <dc:creator>awoolford</dc:creator>
    <dc:date>2019-08-19T11:21:57Z</dc:date>
    <item>
      <title>PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111137#M73985</link>
      <description>&lt;P&gt;I'm trying to stream data to Hive with the PutStreamingHive Nifi processor.&lt;/P&gt;&lt;P&gt;I saw this post: &lt;A target="_blank" href="https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html&lt;/A&gt; and can confirm that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;org.apache.hadoop.hive.ql.lockmgr.DbTxnManager is the transaction manager&lt;/LI&gt;&lt;LI&gt;ACID transactions run compactor is enabled&lt;/LI&gt;&lt;LI&gt;There are threads available for the compactor&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I created an ORC backed Hive table:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE `streaming_messages`(
  `message` string, 
   etc...)
CLUSTERED BY (message) INTO 5 BUCKETS
STORED AS ORC
LOCATION
  'hdfs://hadoop01.woolford.io:8020/apps/hive/warehouse/mydb.db/streaming_messages'
TBLPROPERTIES('transactional'='true');
&lt;/PRE&gt;&lt;P&gt;I then created a `PutStreamingHive` processor that takes messages Avro messages and writes them to a Hive table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8235-puthivestreaming.png" style="width: 1576px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23272iA0532AE183819BBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8235-puthivestreaming.png" alt="8235-puthivestreaming.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I notice that the Nifi processor uses Thrift to send data to Hive. There are some errors in nifi-app.log and hivemetastore.log.&lt;/P&gt;&lt;P&gt;Stacktrace from nifi-app.log:&lt;/P&gt;&lt;PRE&gt;2016-10-03 23:40:25,348 ERROR [Timer-Driven Process Thread-8] o.a.n.processors.hive.PutHiveStreaming 
org.apache.nifi.util.hive.HiveWriter$ConnectFailure: Failed connecting to EndPoint {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.nifi.util.hive.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:80) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.util.hive.HiveUtils.makeHiveWriter(HiveUtils.java:45) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.makeHiveWriter(PutHiveStreaming.java:827) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.getOrCreateWriter(PutHiveStreaming.java:738) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processors.hive.PutHiveStreaming.lambda$onTrigger$4(PutHiveStreaming.java:462) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1880) ~[na:na]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1851) ~[na:na]
        at org.apache.nifi.processors.hive.PutHiveStreaming.onTrigger(PutHiveStreaming.java:389) [nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1064) ~[na:na]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) ~[na:na]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) ~[na:na]
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) ~[na:na]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_77]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_77]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_77]
Caused by: org.apache.nifi.util.hive.HiveWriter$TxnBatchFailure: Failed acquiring Transaction Batch from EndPoint: {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.nifi.util.hive.HiveWriter.nextTxnBatch(HiveWriter.java:255) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        at org.apache.nifi.util.hive.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:74) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        ... 19 common frames omitted
Caused by: org.apache.hive.hcatalog.streaming.TransactionError: Unable to acquire lock on {metaStoreUri='thrift://10.0.1.12:9083', database='mydb', table='streaming_messages', partitionVals=[] }
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:578) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransaction(HiveEndPoint.java:547) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        at org.apache.nifi.util.hive.HiveWriter.nextTxnBatch(HiveWriter.java:252) ~[nifi-hive-processors-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]
        ... 20 common frames omitted
Caused by: org.apache.thrift.transport.TTransportException: null
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69) ~[hive-exec-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_lock(ThriftHiveMetastore.java:3906) ~[hive-metastore-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.lock(ThriftHiveMetastore.java:3893) ~[hive-metastore-1.2.1.jar:1.2.1]
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.lock(HiveMetaStoreClient.java:1863) ~[hive-metastore-1.2.1.jar:1.2.1]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:152) ~[hive-metastore-1.2.1.jar:1.2.1]
        at com.sun.proxy.$Proxy148.lock(Unknown Source) ~[na:na]
        at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:573) ~[hive-hcatalog-streaming-1.2.1.jar:1.2.1]
        ... 22 common frames omitted
&lt;/PRE&gt;&lt;P&gt;Stacktrace from hivemetastore.log:&lt;/P&gt;&lt;PRE&gt;2016-10-03 23:40:24,322 ERROR [pool-5-thread-114]: metastore.RetryingHMSHandler (RetryingHMSHandler.java:invokeInternal(195)) - java.lang.IllegalStateException: Unexpected DataOperationType: UNSET agentInfo=Unknown txnid:98201
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.enqueueLockWithRetry(TxnHandler.java:938)
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.lock(TxnHandler.java:814)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.lock(HiveMetaStore.java:5751)
        at sun.reflect.GeneratedMethodAccessor28.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.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:139)
        at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:97)
        at com.sun.proxy.$Proxy12.lock(Unknown Source)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$lock.getResult(ThriftHiveMetastore.java:11860)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$lock.getResult(ThriftHiveMetastore.java:11844)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:110)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:106)
        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:1724)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:118)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        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;Do you have any suggestions to resolve this?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:21:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111137#M73985</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2019-08-19T11:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111138#M73986</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Which version of Hive are you using? Is it HDP 2.4 or 2.5&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:45:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111138#M73986</guid>
      <dc:creator>mkalyanpur</dc:creator>
      <dc:date>2016-10-04T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111139#M73987</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have the same error, have You solved this? Our HDP is version 2.5.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:59:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111139#M73987</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-04T18:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111140#M73988</link>
      <description>&lt;P&gt;Currently there is a  problem between the version of Hive jars in HDF 2.0 and HDP 2.5 and is being looked into. &lt;/P&gt;&lt;P&gt;You should not be facing any problems while using the HDP 2.4.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:14:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111140#M73988</guid>
      <dc:creator>mkalyanpur</dc:creator>
      <dc:date>2016-10-04T19:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111141#M73989</link>
      <description>&lt;P&gt;The issue for Hive Streaming between HDF 2.0 and HDP 2.5 is captured as &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-2828"&gt;NIFI-2828&lt;/A&gt; (albeit under a different title, it is the same cause and fix). In the meantime as a possible workaround I have built a Hive NAR that you can try if you wish, just save off your other one (from the lib/ folder with a version like 1.0.0.2.0.0-159 or something) and replace it with &lt;A target="_blank" href="https://www.dropbox.com/s/mkqusbjxhku9n80/nifi-hive-nar-1.1.0-SNAPSHOT.nar?dl=0"&gt;this one&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111141#M73989</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-10-04T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111142#M73990</link>
      <description>&lt;P&gt;Hello, thanks for quick answer! Is any way to solve this issue between HDP v 2.5 and HDF v 2.0?&lt;/P&gt;&lt;P&gt;Or we have only one way is to downgrade our HDP to version 2.4?&lt;/P&gt;&lt;P&gt;Is any documented way to do this downgrade?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:45:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111142#M73990</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-04T19:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111143#M73991</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;You can follow the steps mentioned by Matthew.&lt;/P&gt;&lt;P&gt;If you want the exact steps please do the following.&lt;/P&gt;&lt;P&gt;1. Download the jar.&lt;/P&gt;&lt;P&gt;2. Go to /usr/hdf/current/nifi/lib/ which is the usual installation directory of HDF NiFi.&lt;/P&gt;&lt;P&gt;3. Backup the file nifi-hive-nar-1.0.0.2.0.0.0-579.nar&lt;/P&gt;&lt;P&gt;4. Replace it with the one provided by Matthew.&lt;/P&gt;&lt;P&gt;Then you should be able to run the streaming processor.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111143#M73991</guid>
      <dc:creator>mkalyanpur</dc:creator>
      <dc:date>2016-10-04T19:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111144#M73992</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;. That worked perfectly. Very much appreciated. &lt;A rel="user" href="https://community.cloudera.com/users/10928/mkalyanpur.html" nodeid="10928"&gt;@mkalyanpur&lt;/A&gt;: I'm running HDP 2.5.0.0 and HDF 2.0.0.0.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:58:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111144#M73992</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2016-10-04T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111145#M73993</link>
      <description>&lt;P&gt;Thank You very much, suggestion You've provided solved my issue.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:05:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111145#M73993</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-05T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111146#M73994</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I have the same error with storm hive bolt and hive (hdp 2.5)&lt;/P&gt;&lt;P&gt;It works fine with hdp 2.4.
I have problem only with hdp 2.5.
I don't want to rollback to older HDP versio.&lt;/P&gt;&lt;P&gt;Can you help me to solve it .&lt;/P&gt;&lt;P&gt;Any workaround or fix ... or something....&lt;/P&gt;&lt;P&gt;Storm logs below:&lt;/P&gt;&lt;P&gt;org.apache.storm.hive.common.HiveWriter$ConnectFailure: Failed&lt;/P&gt;&lt;P&gt;connecting to EndPoint {metaStoreUri='thrift://ambari.local:9083',&lt;/P&gt;&lt;P&gt;database='default', table='stock_prices', partitionVals=[Marcin] }&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:80)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveUtils.makeHiveWriter(HiveUtils.java:50)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.bolt.HiveBolt.getOrCreateWriter(HiveBolt.java:259)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.bolt.HiveBolt.execute(HiveBolt.java:112)&lt;/P&gt;&lt;P&gt;[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.daemon.executor$fn__9362$tuple_action_fn__9364.invoke(executor.clj:734)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.daemon.executor$mk_task_receiver$fn__9283.invoke(executor.clj:466)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.disruptor$clojure_handler$reify__8796.onEvent(disruptor.clj:40)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:451)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:430)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:73)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.daemon.executor$fn__9362$fn__9375$fn__9428.invoke(executor.clj:853)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at org.apache.storm.util$async_loop$fn__656.invoke(util.clj:484)&lt;/P&gt;&lt;P&gt;[storm-core-1.0.1.2.5.0.0-1245.jar:1.0.1.2.5.0.0-1245]&lt;/P&gt;&lt;P&gt;at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?]&lt;/P&gt;&lt;P&gt;at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]&lt;/P&gt;&lt;P&gt;Caused by: org.apache.storm.hive.common.HiveWriter$TxnBatchFailure:&lt;/P&gt;&lt;P&gt;Failed acquiring Transaction Batch from EndPoint:&lt;/P&gt;&lt;P&gt;{metaStoreUri='thrift://ambari.local:9083', database='default',&lt;/P&gt;&lt;P&gt;table='stock_prices', partitionVals=[Marcin] }&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.nextTxnBatch(HiveWriter.java:264)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:72)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;... 13 more&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hive.hcatalog.streaming.TransactionError: Unable&lt;/P&gt;&lt;P&gt;to acquire lock on {metaStoreUri='thrift://ambari.local:9083',&lt;/P&gt;&lt;P&gt;database='default', table='stock_prices', partitionVals=[Marcin] }&lt;/P&gt;&lt;P&gt;at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:575)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransaction(HiveEndPoint.java:544)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.nextTxnBatch(HiveWriter.java:259)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:72)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;... 13 more&lt;/P&gt;&lt;P&gt;Caused by: org.apache.thrift.transport.TTransportException&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_lock(ThriftHiveMetastore.java:3781)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.lock(ThriftHiveMetastore.java:3768)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.lock(HiveMetaStoreClient.java:1736)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:570)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransaction(HiveEndPoint.java:544)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.nextTxnBatch(HiveWriter.java:259)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;at org.apache.storm.hive.common.HiveWriter.&amp;lt;init&amp;gt;(HiveWriter.java:72)&lt;/P&gt;&lt;P&gt;~[stormjar.jar:?]&lt;/P&gt;&lt;P&gt;... 13 more&lt;/P&gt;&lt;P&gt;2017-03-26 21:43:05.112 h.metastore [INFO] Trying to connect to&lt;/P&gt;&lt;P&gt;metastore with URI thrift://ambari.local:9083&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:11:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111146#M73994</guid>
      <dc:creator>marcin_kasinski</dc:creator>
      <dc:date>2017-03-27T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111147#M73995</link>
      <description>&lt;P&gt;The aforementioned issue has been fixed as of HDF 2.1.  Rather than downgrade your HDP, can you upgrade your HDF?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 02:38:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111147#M73995</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-28T02:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111148#M73996</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thank you very much for you reply.
Now I know that I can fix it and I'm very happy with that.&lt;/P&gt;&lt;P&gt;I'm begginer.&lt;/P&gt;&lt;P&gt;I've installed ambari on my 4 virtual machines just to know Big Data.
I'm using repositories (I can see it in my ambari web console) :&lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.5.0.0"&gt;http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.5.0.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu14"&gt;http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu14&lt;/A&gt; &lt;/P&gt;&lt;P&gt;During ambari installation I used ambari list &lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4.2.0/ambari.list"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4"&gt;http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4&lt;/A&gt;  .0.1/ambari.list &lt;/P&gt;&lt;P&gt;I know that this ambari list points to HDP 2.5&lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4.2.0/ambari.list"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now my question is :&lt;/P&gt;&lt;P&gt;How can I upgrade HDF ?
Should I use other repositories ?&lt;/P&gt;&lt;P&gt;Sorry if my question is stupid....&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111148#M73996</guid>
      <dc:creator>marcin_kasinski</dc:creator>
      <dc:date>2017-03-28T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111149#M73997</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I've upgraded my environment.&lt;/P&gt;&lt;P&gt;I have HIve on HDP 2.5 (environment 1) and storm on HDF 2.1 &lt;/P&gt;&lt;P&gt;(environment 2)&lt;/P&gt;&lt;P&gt;
I have the same roor:&lt;/P&gt;&lt;P&gt;On storm:&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hive.hcatalog.streaming.TransactionError: Unable to acquire lock on {metaStoreUri='thrift://hdp1.local:9083', database='default', table='stock_prices', partitionVals=[Marcin] }
   at org.apache.hive.hcatalog.streaming.HiveEndPoint$TransactionBatchImpl.beginNextTransactionImpl(HiveEndPoint.java:575) ~[stormjar.jar:?]
  &lt;/P&gt;&lt;P&gt;On hive metastore:&lt;/P&gt;&lt;P&gt;2017-03-29 11:56:29,926 ERROR [pool-5-thread-17]: server.TThreadPoolServer (TThreadPoolServer.java:run(297)) - Error occurred during processing of message.
java.lang.IllegalStateException: Unexpected DataOperationType: UNSET agentInfo=Unknown txnid:54
   at org.apache.hadoop.hive.metastore.txn.TxnHandler.enqueueLockWithRetry(TxnHandler.java:938)
   at org.apache.hadoop.hive.metastore.txn.TxnHandler.lock(TxnHandler.java:814)
   at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.lock(HiveMetaSt&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:58:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111149#M73997</guid>
      <dc:creator>marcin_kasinski</dc:creator>
      <dc:date>2017-03-29T18:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111150#M73998</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I did faced the same issue with thrift server connectivity. Replacing the .nar file with your given .nar file has resolved my issue.&lt;/P&gt;&lt;P&gt;But, can you please help me is getting the .nar file generated for the latest version of NiFi-1.2.0 ?&lt;/P&gt;&lt;P&gt;Because, I tried replacing the .nar in NiFi-1.2.0 version. But,  the issue was same. I tried installing NiFi-1.1.0 and then replaced the .nar file and it worked !!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:18:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111150#M73998</guid>
      <dc:creator>santhosh_sagi</dc:creator>
      <dc:date>2017-06-08T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111151#M73999</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I had faced thrift server connectivity issue with NiFi-1.2.0 (Installed in HDP 2.6.0). I tried replacing the .nar file with yours given .nar, But it did not help.&lt;/P&gt;&lt;P&gt;I tried to install NiFi-1.1.0 and tried to run without replacing the .nar file. It did not help either. But, when I did replaced the .nar with yours .nar file with NiFi-1.1.0, then it worked for me !!&lt;/P&gt;&lt;P&gt;Can you please help me generating the 'nifi-hive.nar' file for NiFi-1.2.0. Also, it would be great if you provide the steps to generate the .nar file and what specific changes were made, so that .nar file worked for NiFi-1.1.0.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:18:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111151#M73999</guid>
      <dc:creator>santhosh_sagi</dc:creator>
      <dc:date>2017-06-08T21:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111152#M74000</link>
      <description>&lt;P&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;&lt;P&gt;Hi Matt, I am using nifi-1.4.0 with HDP 2.6. I was facing the same issue in PutHiveStreaming processor. I replaced it with the nar you provided. It is working fine when I'm writing to a non partitioned table. But when I tried to write it to a partitioned hive table, it throws the following error :&lt;BR /&gt;&lt;BR /&gt;PutHiveStreaming[id=9b7b6af6-015f-1000-8772-6b70eb0a4841]
failed to process due to java.lang.RuntimeException:
java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be
writable. Current permissions are: rwx------; rolling back session: {}&lt;BR /&gt;java.lang.RuntimeException: java.lang.RuntimeException: The
root scratch dir: /tmp/hive on HDFS should be writable. Current permissions
are: rwx------&lt;/P&gt;&lt;P&gt;I have provided all the necessary permissions to /tmp/hive folder, still I'm facing the same issue.&lt;/P&gt;&lt;P&gt;Please let me know if I'm missing something.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mohit Jain&lt;/P&gt;,&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt; I am using nifi 1.4.0 with HDP 2.6. I was facing the same error. I replaced the hive nar bundle with the one you provided. It is now working fine for the unpartitioned table. But when I'm trying to ingest on the partitioned table, it throws the following error:&lt;BR /&gt;PutHiveStreaming[id=9b7b6af6-015f-1000-8772-6b70eb0a4841]
failed to process due to java.lang.RuntimeException:
java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be
writable. Current permissions are: rwx------; rolling back session: {}&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException:
java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be
writable. Current permissions are: rwx------&lt;BR /&gt;at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:523)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.createPartitionIfNotExists(HiveEndPoint.java:454)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:318)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.&amp;lt;init&amp;gt;(HiveEndPoint.java:278)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnectionImpl(HiveEndPoint.java:215)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:192)&lt;/P&gt;&lt;P&gt;  at
org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:122)&lt;/P&gt;&lt;P&gt;  at
org.apache.nifi.util.hive.HiveWriter.lambda$newConnection$6(HiveWriter.java:237)&lt;/P&gt;&lt;P&gt;  at
java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/P&gt;&lt;P&gt;  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;/P&gt;&lt;P&gt;  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;/P&gt;&lt;P&gt;  at
java.lang.Thread.run(Thread.java:748)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.RuntimeException: The root scratch dir:
/tmp/hive on HDFS should be writable. Current permissions are: rwx------&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:613)&lt;/P&gt;&lt;P&gt;  at
org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:555)&lt;/P&gt;&lt;P&gt;  at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:509)&lt;/P&gt;&lt;P&gt;  ... 11 common
frames omitted&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have given all the permissions to the /tmp/hive folder, still it throws the same error. Please let me know if I'm missing something.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 04:09:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111152#M74000</guid>
      <dc:creator>mohit_jain</dc:creator>
      <dc:date>2017-11-11T04:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111153#M74001</link>
      <description>&lt;P&gt;Issue Resolved.&lt;/P&gt;&lt;P&gt;In HDP 3.0, please use PutHive3Streaming, PutHive3QL and SelectHiveQL.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 23:34:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111153#M74001</guid>
      <dc:creator>mustafa_qizilba</dc:creator>
      <dc:date>2018-08-21T23:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: PutHiveStreaming Nifi processor; various errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111154#M74002</link>
      <description>&lt;P&gt;I am getting same error in  HDP 3.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 23:53:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/PutHiveStreaming-Nifi-processor-various-errors/m-p/111154#M74002</guid>
      <dc:creator>vitthal_jadhavb</dc:creator>
      <dc:date>2018-12-14T23:53:16Z</dc:date>
    </item>
  </channel>
</rss>

