<?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 HiveStreaming error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224700#M75050</link>
    <description>&lt;P&gt;The Nifi user may not have permissions to the /apps/hive/warehouse directory&lt;/P&gt;&lt;P&gt;What is it's permissions?  What is your Hive local scheme?&lt;/P&gt;&lt;P&gt;Does NiFi users have HDFS read/write permissions?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 02:46:43 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2018-02-28T02:46:43Z</dc:date>
    <item>
      <title>NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224697#M75047</link>
      <description>&lt;P&gt;I'm working on NIFI 1.5.0. I downloaded Apache NIFI and installed on one of my HDP cluster nodes. I'm running the test against a 3 nodes HDP 2.6 cluster.  &lt;/P&gt;&lt;P&gt;I'm following a tutorial from following link:&lt;/P&gt;&lt;P&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;&lt;P&gt;Everything works fine, but I get error at PutHiveStreaming step.  It's basically complaining about an error connecting against Hive endpoint and the table.  The table in Hive is created as managed table, and not as an external table.  I can telnet to Hive metastore server and port from my NIFI node.  What would be  root-cause of this issue?&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62560-nifi-error2.png"&gt;nifi-error2.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Error attached:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62559-nifi-error.png"&gt;nifi-error.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 04:03:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224697#M75047</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2018-02-27T04:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224698#M75048</link>
      <description>&lt;P&gt;I believe you'll want to run the HDF build of NiFi which has libraries tailored to work with HDP Hive.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:52:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224698#M75048</guid>
      <dc:creator>JoeWitt</dc:creator>
      <dc:date>2018-02-27T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224699#M75049</link>
      <description>&lt;P&gt;Is your cluster kerberized?   Can you access Hive from the command line of that machine?   That article is a bit old.     can you post any log messages.&lt;/P&gt;&lt;P&gt;The HDF version of NiFi is configured just for this and the addition of ambari makes everything easier.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.0/bk_installing-hdf-on-hdp/content/upgrading_ambari.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.0/bk_installing-hdf-on-hdp/content/upgrading_ambari.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:14:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224699#M75049</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-02-28T02:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224700#M75050</link>
      <description>&lt;P&gt;The Nifi user may not have permissions to the /apps/hive/warehouse directory&lt;/P&gt;&lt;P&gt;What is it's permissions?  What is your Hive local scheme?&lt;/P&gt;&lt;P&gt;Does NiFi users have HDFS read/write permissions?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:46:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224700#M75050</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-02-28T02:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224701#M75051</link>
      <description>&lt;P&gt;In order for Hive Streaming to work the following has to be in place:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Table is stored as ORC&lt;/LI&gt;&lt;LI&gt;Transactional Property is set to “True”&lt;/LI&gt;&lt;LI&gt;The Table is Bucketed&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:48:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224701#M75051</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-02-28T02:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224702#M75052</link>
      <description>&lt;P&gt;The table needs to be created properly with permissions&lt;/P&gt;&lt;P&gt;Example Table DDL&lt;/P&gt;&lt;P&gt;CREATE TABLE `inception`(
uuid STRING, top1pct STRING, top1 STRING, top2pct STRING, top2 STRING, top3pct STRING, top3 STRING, top4pct STRING, top4 STRING, top5pct STRING, top5 STRING, imagefilename STRING, 
runtime STRING)
CLUSTERED BY ( top1) 
INTO 3 BUCKETS
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.ql.io.orc.OrcSerde' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES (  'transactional'='true')&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:59:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224702#M75052</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-02-28T02:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224703#M75053</link>
      <description>&lt;P&gt;Thanks Timothy. This could be a reason, I don't have a NIFI user that I've created.  How do I create a NIFI user?&lt;/P&gt;&lt;P&gt;The table(OLYMPICS) is in default schema.  Here is the DDL for the Hive table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--created hive table&lt;BR /&gt;CREATE  TABLE&lt;BR /&gt;OLYMPICS(CITY STRING,EDITION INT,SPORT STRING,SUB_SPORT STRING,ATHLETE STRING,COUNTRY STRING,GENDER STRING,EVENT STRING,EVENT_GENDER STRING,MEDAL STRING)&lt;BR /&gt;CLUSTERED BY (EDITION)INTO 3 BUCKETS&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;STORED AS ORC &lt;BR /&gt;LOCATION  '/tmp/olympics'&lt;BR /&gt;TBLPROPERTIES('transactional'='true');&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 04:00:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224703#M75053</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2018-02-28T04:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224704#M75054</link>
      <description>&lt;P&gt;Thanks Timothy.  The cluster is not Kerberized.  I can access Hive from command line of that machine.  I will probably have to try installing HDF version of NIFI. Attached is the NIFI app log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nifi-applog.txt&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 04:28:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224704#M75054</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2018-02-28T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224705#M75055</link>
      <description>&lt;P&gt;The PutHiveStreaming worked w/ HDF build of NiFi version without any problem.  I downloaded &lt;/P&gt;&lt;P&gt;nifi-1.2.0.3.0.0.0-453-bin.tar.gz from HDF, and installed it on a node as standalone application, and file streamed to hive table without any issues. Thanks for your help.&lt;/P&gt;.</description>
      <pubDate>Tue, 06 Mar 2018 04:03:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224705#M75055</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2018-03-06T04:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI HiveStreaming error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224706#M75056</link>
      <description>&lt;P&gt;Thanks Tim.  NiFi Flow worked with HDF version of NiFi.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 04:04:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-HiveStreaming-error/m-p/224706#M75056</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2018-03-06T04:04:29Z</dc:date>
    </item>
  </channel>
</rss>

