<?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: NIFI putHiveStreaming processor error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183051#M75475</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;This hive connection pool configs are varies depending on the setup,unfortunately there are no standard properties that i can share with you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveConnectionPool configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I use the below connection pool configs&lt;BR /&gt;Database Connection URL
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;jdbc:hive2://sandbox.hortonworks:2181,sandbox.hortonworks:2181,sandbox.hortonworks:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-binary;principal=hive/_HOST@HDP.LOCAL&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Hive Configuration Resources
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;/etc/hdp/hive-site.xml,/etc/hdp/core-site.xml,/etc/hdp/hdfs-site.xml&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Database User
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;nifi&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Password
No value set
Max Wait Time
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;500 millis&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Max Total Connections
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;8&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Validation query&lt;/P&gt;&lt;PRE&gt;select current_timestamp&lt;/PRE&gt;&lt;P&gt;Please refer to below links to get your jdbc connection url and if your environment is kerberized then you need to mention kerberos principal,keytab in the connection pool service.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/107945/hive-database-connection-pooling-service.html" target="_blank"&gt;https://community.hortonworks.com/questions/107945/hive-database-connection-pooling-service.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/questions/64609/cannot-create-hive-connection-pool.html" target="_blank"&gt;https://community.hortonworks.com/questions/64609/cannot-create-hive-connection-pool.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 04:03:23 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-03-16T04:03:23Z</dc:date>
    <item>
      <title>NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183040#M75464</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62703-db-hive-temp.xml"&gt;db-hive-temp.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62704-nifi-db-hive.jpg"&gt;nifi-db-hive.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please see the attached error , i am feeding it JSON data but its complaining about AVRO format. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 00:41:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183040#M75464</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-08T00:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183041#M75465</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;As stated in the processor description/documentation:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;This processor uses Hive Streaming to send flow file data to an Apache 
Hive table. The incoming flow file is expected to be in Avro format and 
the table must exist in Hive. Please see the Hive documentation for 
requirements on the Hive table (format, partitions, etc.). The partition
 values are extracted from the Avro record based on the names of the 
partition columns as specified in the processor. NOTE: If multiple 
concurrent tasks are configured for this processor, only one table can 
be written to at any time by a single thread. Additional tasks intending
 to write to the same table will wait for the current task to finish 
writing to the table.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You'll need to convert your data into avro first. The best approach is to use the record processors for that.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:41:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183041#M75465</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2018-03-08T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183042#M75466</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;Output of QueryDatabaseTable processor are always in &lt;STRONG&gt;avro format , &lt;/STRONG&gt;so you need to use PutHiveStreaming processor after Querydatabasetable processor.&lt;/P&gt;&lt;P&gt;As PutHiveStreaming processor expects incoming data to be in avro format and we are getting incoming data from querydatabasetable in avro format.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1.QueryDatabasetable&lt;BR /&gt;2.PutHiveStreaming&lt;BR /&gt;3.LogAttribute&lt;/PRE&gt;&lt;P&gt;please refer to below links regarding table creation of puthivestreaming processor&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html" target="_blank"&gt;https://community.hortonworks.com/questions/59411/how-to-use-puthivestreaming.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/articles/52856/stream-data-into-hive-like-a-king-using-nifi.html" target="_blank"&gt;https://community.hortonworks.com/articles/52856/stream-data-into-hive-like-a-king-using-nifi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 20:16:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183042#M75466</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-08T20:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183043#M75467</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64548-puhive-after-querydatabase.jpg"&gt;puhive-after-querydatabase.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was told by the HW engineer who setup this initial setup that putHiveStreaming processor is not able to write into hive table cause the data is not in JSON format and I need to convert it to JSON first ..  ? &lt;/P&gt;&lt;P&gt;please see the attached error when I put HiveStreaming after the QueryDatabase processor.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 05:22:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183043#M75467</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-09T05:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183044#M75468</link>
      <description>&lt;P&gt;What is the Hive table DDL?&lt;/P&gt;&lt;P&gt;It needs to be bucketed and an ORC file.&lt;/P&gt;&lt;P&gt;See my example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/174538/apache-deep-learning-101-using-apache-mxnet-with-h.html" target="_blank"&gt;https://community.hortonworks.com/articles/174538/apache-deep-learning-101-using-apache-mxnet-with-h.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 05:27:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183044#M75468</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-03-09T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183045#M75469</link>
      <description>&lt;P&gt;should be Avro with a schema.&lt;/P&gt;&lt;P&gt;Get a document or example code from an engineer&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 05:27:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183045#M75469</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-03-09T05:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183046#M75470</link>
      <description>&lt;P&gt;my hive table is bucketed and in ORC format. &lt;/P&gt;&lt;P&gt;so why am I getting error ? and what does this error means?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 04:01:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183046#M75470</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-13T04:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183047#M75471</link>
      <description>Shu this flow you mentioned  1) QueryDatabasetable 2)PutHiveStreaming  3)LogAttribute     is not working for me , can you please take a look at the errors / the attached flow file ?</description>
      <pubDate>Tue, 13 Mar 2018 04:02:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183047#M75471</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-13T04:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183048#M75472</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shu this flow you mentioned  1) QueryDatabasetable 2)PutHiveStreaming  3)LogAttribute     is not working for me , can you please take a look at the errors / the attached flow file ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 04:03:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183048#M75472</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-13T04:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183049#M75473</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115" target="_blank"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;Sad to hear that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;I tried to create the same flow and it works as expected.&lt;/P&gt;&lt;P&gt;Here is what i tried..&lt;/P&gt;&lt;P&gt;i have create a table in hive &lt;STRONG&gt;bucketed,partitioned,orc format,transactional&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;hive ddl:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create table default.tmp(id string,name string)
partitioned by(ts timestamp)
clustered by (id)
into 2 buckets
stored as orc
TBLPROPERTIES ("transactional"="true");&lt;/PRE&gt;&lt;PRE&gt;hive&amp;gt; desc tmp;
+--------------------------+-----------------------+-----------------------+--+
|         col_name         |       data_type       |        comment        |
+--------------------------+-----------------------+-----------------------+--+
| id                       | string                |                       |
| name                     | string                |                       |
| ts                       | timestamp             |                       |
|                          | NULL                  | NULL                  |
| # Partition Information  | NULL                  | NULL                  |
| # col_name               | data_type             | comment               |
|                          | NULL                  | NULL                  |
| ts                       | timestamp             |                       |
+--------------------------+-----------------------+-----------------------+--+&lt;/PRE&gt;&lt;P&gt;i have created the tmp table with&lt;STRONG&gt; id,name columns&lt;/STRONG&gt; as string types and partitioned by ts as timestamp type.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Now PutHiveStreaming Processor Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="62862-puthivestreaming.png" style="width: 1863px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19094i0C072F3FA01FC076/image-size/medium?v=v2&amp;amp;px=400" role="button" title="62862-puthivestreaming.png" alt="62862-puthivestreaming.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select data from tmp table now:-&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select * from tmp;
+-----+-------+--------------------------+--+
| id  | name  |            ts            |
+-----+-------+--------------------------+--+
| 1   | hdf   | 2015-01-02 20:23:20.0    |
| 1   | hdf   | 2015-01-02 20:23:20.0    |
| 1   | hdf   | 2018-03-12 19:11:51.217  |
| 1   | hdf   | 2018-03-12 19:11:51.24   |
+-----+-------+--------------------------+--+&lt;/PRE&gt;&lt;PRE&gt;hive&amp;gt; show partitions tmp;
+---------------------------------+--+
|            partition            |
+---------------------------------+--+
| ts=2015-01-02 20%3A23%3A20.0    |
| ts=2018-03-12 19%3A11%3A51.217  |
| ts=2018-03-12 19%3A11%3A51.24   |
+---------------------------------+--+&lt;/PRE&gt;&lt;P&gt;For testing purpose use &lt;STRONG&gt;select hiveql processor&lt;/STRONG&gt; with below configs:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveQL Select Query
&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;select int(1) id,string('hdf')name,timestamp(current_timestamp)ts&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Output Format
&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Avro&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="62863-selecthiveql.png" style="width: 1857px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19095iA65E455E98040DA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="62863-selecthiveql.png" alt="62863-selecthiveql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Test Flow:&lt;/U&gt;&lt;/STRONG&gt;-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="62864-hivestreaming-test-flow.png" style="width: 2979px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19096iCE20AB8C344F48B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="62864-hivestreaming-test-flow.png" alt="62864-hivestreaming-test-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;try this flow once and make sure you are able to load using PutHiveStreaming processor into hive.once you are able to load the data into hive then try with your scenario.&lt;/P&gt;&lt;P&gt;If issue still exists then share&lt;STRONG&gt; your hive create table statement and 10 records of sample data &lt;/STRONG&gt;so that we can recreate and help you out ASAP.&lt;/P&gt;&lt;P&gt;In addition&lt;STRONG&gt; if you don't want to create partitions&lt;/STRONG&gt; then create table statement would be&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create table default.tmp(id string,name string,ts string) --with ts as timestamp type also works
clustered by (id)
into 2 buckets
stored as orc
TBLPROPERTIES ("transactional"="true");&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="62865-nopartition.png" style="width: 1464px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19097i879DE9D8E5102405/image-size/medium?v=v2&amp;amp;px=400" role="button" title="62865-nopartition.png" alt="62865-nopartition.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:46:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183049#M75473</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183050#M75474</link>
      <description>&lt;P&gt;hi Shu can you please put the properties of the HiveConnectionPool ? &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64628-hiveconnectionpool-properties.jpg"&gt;hiveconnectionpool-properties.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 03:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183050#M75474</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-16T03:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183051#M75475</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;This hive connection pool configs are varies depending on the setup,unfortunately there are no standard properties that i can share with you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveConnectionPool configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I use the below connection pool configs&lt;BR /&gt;Database Connection URL
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;jdbc:hive2://sandbox.hortonworks:2181,sandbox.hortonworks:2181,sandbox.hortonworks:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-binary;principal=hive/_HOST@HDP.LOCAL&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Hive Configuration Resources
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;/etc/hdp/hive-site.xml,/etc/hdp/core-site.xml,/etc/hdp/hdfs-site.xml&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Database User
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;nifi&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Password
No value set
Max Wait Time
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;500 millis&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Max Total Connections
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;8&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Validation query&lt;/P&gt;&lt;PRE&gt;select current_timestamp&lt;/PRE&gt;&lt;P&gt;Please refer to below links to get your jdbc connection url and if your environment is kerberized then you need to mention kerberos principal,keytab in the connection pool service.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/107945/hive-database-connection-pooling-service.html" target="_blank"&gt;https://community.hortonworks.com/questions/107945/hive-database-connection-pooling-service.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/questions/64609/cannot-create-hive-connection-pool.html" target="_blank"&gt;https://community.hortonworks.com/questions/64609/cannot-create-hive-connection-pool.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 04:03:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183051#M75475</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-16T04:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183052#M75476</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/65403-db-record.zip"&gt;db-record.zip&lt;/A&gt;i think its the data issue , I am uploaded a queue entry  please take a look. &lt;/P&gt;&lt;P&gt;the table ddl is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE  TABLE purchase_acct_orc (&lt;BR /&gt;  acct_num  BIGINT,&lt;BR /&gt;  pur_id  BIGINT,&lt;BR /&gt;  pur_det_id  BIGINT,&lt;BR /&gt;  product_pur_product_code  STRING,&lt;BR /&gt;  prod_amt  FLOAT,&lt;BR /&gt;  accttype_acct_type_code STRING,&lt;BR /&gt;  acctstat_acct_status_code STRING,&lt;BR /&gt;  emp_emp_code  STRING,&lt;BR /&gt;  plaza_plaza_id STRING,&lt;BR /&gt;  purstat_pur_status_code STRING&lt;BR /&gt;  )&lt;BR /&gt; PARTITIONED BY (pur_trans_date TIMESTAMP)&lt;BR /&gt; CLUSTERED BY(acct_num) INTO 5 BUCKETS&lt;BR /&gt; STORED AS ORC&lt;BR /&gt; TBLPROPERTIES ("transactional"="true")&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 01:38:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183052#M75476</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-21T01:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183053#M75477</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115" target="_blank"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;You have to change the data types in your create table statement as table used by put hive streaming processor expects all the datatypes would be strings(except for timestamp..etc types).&lt;/P&gt;&lt;P&gt;use the below create table statement&lt;/P&gt;&lt;PRE&gt;CREATE TABLE default.purchase_acct_orc (
acct_num STRING,
pur_id STRING,
pur_det_id STRING,
product_pur_product_code STRING,
prod_amt STRING,
accttype_acct_type_code STRING,
accttype_acct_status_code STRING,
emp_emp_code STRING,
plaza_plaza_id STRING,
purstat_pur_status_code STRING)
PARTITIONED BY (pur_trans_date TIMESTAMP)
CLUSTERED BY(acct_num) INTO 5 BUCKETS
STORED AS ORC
TBLPROPERTIES ("transactional"="true");&lt;/PRE&gt;&lt;P&gt;Then start the put hive streaming processor.&lt;/P&gt;&lt;P&gt;As i tried with same create table statement as above and the data that you have provided in the comment and i'm able to load the data into the table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64734-flow.png" style="width: 1626px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19091iD994C8274C8B03B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64734-flow.png" alt="64734-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Select Hive Ql configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64733-selecthiveql.png" style="width: 2063px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19092i78A4DDB76DB15CA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64733-selecthiveql.png" alt="64733-selecthiveql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveQL Select Query
&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;select string(16680934) ACCT_NUM,string(747032990) PUR_ID,string(656564856) PUR_DET_ID,string(31) PRODUCT_PUR_PRODUCT_CODE,string(50) PROD_AMT,string('2015-01-01 08:12:03.0') PUR_TRANS_DATE,string(1) ACCTTYPE_ACCT_TYPE_CODE,string(01) ACCTTYPE_ACCT_STATUS_CODE,string(9999) EMP_EMP_CODE,string(009500 )PLAZA_PLAZA_ID,string(10) PURSTAT_PUR_STATUS_CODE&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Output Format
&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Avro&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Puthivestreaming Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64732-hivestreaming.png" style="width: 1568px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19093i5B879120266A592E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64732-hivestreaming.png" alt="64732-hivestreaming.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt; select * from default.purchase_acct_orc;
+-----------+------------+-------------+---------------------------+-----------+--------------------------+----------------------------+---------------+-----------------+--------------------------+------------------------+--+
| acct_num  |   pur_id   | pur_det_id  | product_pur_product_code  | prod_amt  | accttype_acct_type_code  | accttype_acct_status_code  | emp_emp_code  | plaza_plaza_id  | purstat_pur_status_code  |     pur_trans_date     |
+-----------+------------+-------------+---------------------------+-----------+--------------------------+----------------------------+---------------+-----------------+--------------------------+------------------------+--+
| 16680934  | 747032990  | 656564856   | 31                        | 50        | 1                        | 1                          | 9999          | 9500            | 10                       | 2015-01-01 08:12:03.0  |
+-----------+------------+-------------+---------------------------+-----------+--------------------------+----------------------------+---------------+-----------------+--------------------------+------------------------+--+&lt;/PRE&gt;&lt;P&gt;Let us know if you have any issues..!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:46:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183053#M75477</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183054#M75478</link>
      <description>&lt;P&gt;hi Shu &lt;/P&gt;&lt;P&gt;yes the table structure you gave fixed the issue and its loading now but something strange is happening , it got stuck on 104 for a while and I stopped the QueryDatabaseTable processor , then after a while I noticed it had dumped more records   . I guess its just slow ?  &lt;/P&gt;&lt;P&gt;how can I tune the  loading app  as its extremely slow.&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;PRE&gt;18555604        747495984       657020052       31      25      01      NULL    9985    009500  10      2015-01-03 10:02:41
Time taken: 0.089 seconds, Fetched: 104 row(s)
hive&amp;gt;
&amp;lt;br&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:40:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183054#M75478</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-21T20:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI putHiveStreaming processor error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183055#M75479</link>
      <description>&lt;P&gt;why do I have "LogAttribute" with QueryDatabasetable processor?  its showing a red block on the corner which normally indicates issues I think. &lt;/P&gt;&lt;P&gt;from QueryDatabaseTable there are two relations  one going to PutHiveStreaming and one going to LogAttribute  .  why do I need two relationships for success ? &lt;BR /&gt;(please see attached)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/65411-capture.jpg"&gt;capture.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:50:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-putHiveStreaming-processor-error/m-p/183055#M75479</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-21T20:50:58Z</dc:date>
    </item>
  </channel>
</rss>

