<?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 NiFi user getting Tez exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190235#M65291</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are experiencing a strange situation , my flow has 1 PutHDFS,5 PutHiveQL processes. When i use my user keytab it all works as expected but it fails when i use NiFi user keytab. That too on one particular PutHiveQL processor where it uses the following syntax.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert overwrite table db_test.tbl_test PARTITION(date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT col1,col2,col3.....,col100 FROM temp_table where date= 20170717
DISTRIBUTE BY col100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;getting this error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PutHiveQL[id=b1b830f3-d843-13d4-af26-f3e1aa74942d]
Failed to update Hive for
StandardFlowFileRecord[uuid=0992aeb1-4a00-4b40-b012-bdb055917ed2,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1500476164378-589, container=default,
section=589], offset=138,
length=1463],offset=0,name=20170717.csv,size=1463] due to
java.sql.SQLException: Error while processing statement: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask; it is
possible that retrying the operation will succeed, so routing to retry:
java.sql.SQLException: Error while processing statement: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Other 4 PutHiveQLs use ALTER TABLE Commands which works fine with NiFi user , only the above SQL is failing. But it works with my user id. All users are setup same in Ranger. only issue may be my user is created in all nodes where nifi user may not be..will that be causing this issue or anything else.??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 10:40:49 GMT</pubDate>
    <dc:creator>saikrishna_tara</dc:creator>
    <dc:date>2017-07-21T10:40:49Z</dc:date>
    <item>
      <title>NiFi user getting Tez exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190235#M65291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are experiencing a strange situation , my flow has 1 PutHDFS,5 PutHiveQL processes. When i use my user keytab it all works as expected but it fails when i use NiFi user keytab. That too on one particular PutHiveQL processor where it uses the following syntax.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert overwrite table db_test.tbl_test PARTITION(date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT col1,col2,col3.....,col100 FROM temp_table where date= 20170717
DISTRIBUTE BY col100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;getting this error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PutHiveQL[id=b1b830f3-d843-13d4-af26-f3e1aa74942d]
Failed to update Hive for
StandardFlowFileRecord[uuid=0992aeb1-4a00-4b40-b012-bdb055917ed2,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1500476164378-589, container=default,
section=589], offset=138,
length=1463],offset=0,name=20170717.csv,size=1463] due to
java.sql.SQLException: Error while processing statement: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask; it is
possible that retrying the operation will succeed, so routing to retry:
java.sql.SQLException: Error while processing statement: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Other 4 PutHiveQLs use ALTER TABLE Commands which works fine with NiFi user , only the above SQL is failing. But it works with my user id. All users are setup same in Ranger. only issue may be my user is created in all nodes where nifi user may not be..will that be causing this issue or anything else.??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 10:40:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190235#M65291</guid>
      <dc:creator>saikrishna_tara</dc:creator>
      <dc:date>2017-07-21T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi user getting Tez exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190236#M65292</link>
      <description>&lt;P&gt;We fixed it , NiFi is missing permissions on the temp folders\files that it creates during INSERT..SELECT command.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 03:13:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190236#M65292</guid>
      <dc:creator>saikrishna_tara</dc:creator>
      <dc:date>2017-07-22T03:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi user getting Tez exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190237#M65293</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11732/saikrishnatarapareddy.html" nodeid="11732"&gt;@Saikrishna Tarapareddy&lt;/A&gt;, can you please specify what folders and files needed the permissions? Are they on the HiveServer2 server or on HDFS?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 00:15:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190237#M65293</guid>
      <dc:creator>dougspadotto_h</dc:creator>
      <dc:date>2018-07-25T00:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi user getting Tez exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190238#M65294</link>
      <description>&lt;P&gt;I found it. In my case it was /user/nifi on HDFS, which is the user that the flow connects with.&lt;/P&gt;&lt;P&gt;It moves a .jar file under the .hiveJars subdirectory on that directory in order to run commands.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 00:28:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-user-getting-Tez-exception/m-p/190238#M65294</guid>
      <dc:creator>dougspadotto_h</dc:creator>
      <dc:date>2018-07-25T00:28:25Z</dc:date>
    </item>
  </channel>
</rss>

