<?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>topic Talend Big Data: HIVE Table tHiveLoad OVERWRITE doesn´t work in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279509#M54648</link>
    <description>Hi guys,
&lt;BR /&gt;I need to run a job in which I have to truncate every time an Hive Table and insert new data.
&lt;BR /&gt;If I execute the query from the HUE browser interface using the same user like this:
&lt;BR /&gt;INSERT OVERWRITE TABLE work.bi_xxx
&lt;BR /&gt;SELECT ...
&lt;BR /&gt;the map reduce job works properly. :-)
&lt;BR /&gt;If I translate this into a Talend Job using a tHiveLoad and using:
&lt;BR /&gt;- the SAME user 
&lt;BR /&gt;- and Load action: INSERT
&lt;BR /&gt;- Action on file: OVERWRITE 
&lt;BR /&gt;it doesn´t work and I receive this exception: :-(
&lt;BR /&gt;Default;6;Java Exception;tHiveLoad_2;java.sql.SQLException:Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask;1
&lt;BR /&gt;
&lt;BR /&gt;If I execute the same but with Action on File: APPEND it works properly. :-)
&lt;BR /&gt;How can be considering that I´m using the same user with the same permissions?
&lt;BR /&gt;I tried also to use a tHiveRow component before in order to truncate the table and then using APPEND in the tHiveLoad but the TRUNCATE command doesn´t work.
&lt;BR /&gt;Please can you help me?
&lt;BR /&gt;I really don´t know why this different behavior.
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Mary</description>
    <pubDate>Sat, 16 Nov 2024 11:41:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:41:35Z</dc:date>
    <item>
      <title>Talend Big Data: HIVE Table tHiveLoad OVERWRITE doesn´t work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279509#M54648</link>
      <description>Hi guys,
&lt;BR /&gt;I need to run a job in which I have to truncate every time an Hive Table and insert new data.
&lt;BR /&gt;If I execute the query from the HUE browser interface using the same user like this:
&lt;BR /&gt;INSERT OVERWRITE TABLE work.bi_xxx
&lt;BR /&gt;SELECT ...
&lt;BR /&gt;the map reduce job works properly. :-)
&lt;BR /&gt;If I translate this into a Talend Job using a tHiveLoad and using:
&lt;BR /&gt;- the SAME user 
&lt;BR /&gt;- and Load action: INSERT
&lt;BR /&gt;- Action on file: OVERWRITE 
&lt;BR /&gt;it doesn´t work and I receive this exception: :-(
&lt;BR /&gt;Default;6;Java Exception;tHiveLoad_2;java.sql.SQLException:Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask;1
&lt;BR /&gt;
&lt;BR /&gt;If I execute the same but with Action on File: APPEND it works properly. :-)
&lt;BR /&gt;How can be considering that I´m using the same user with the same permissions?
&lt;BR /&gt;I tried also to use a tHiveRow component before in order to truncate the table and then using APPEND in the tHiveLoad but the TRUNCATE command doesn´t work.
&lt;BR /&gt;Please can you help me?
&lt;BR /&gt;I really don´t know why this different behavior.
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Mary</description>
      <pubDate>Sat, 16 Nov 2024 11:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279509#M54648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Big Data: HIVE Table tHiveLoad OVERWRITE doesn´t work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279510#M54649</link>
      <description>Mary - does the APPEND work in HUE browser or in Talend using the Hive component?</description>
      <pubDate>Mon, 07 Apr 2014 15:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279510#M54649</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-07T15:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Big Data: HIVE Table tHiveLoad OVERWRITE doesn´t work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279511#M54650</link>
      <description>HI,&lt;BR /&gt;yes, the APPEND in Talend works properly but not the OVERWRITE.&lt;BR /&gt;Do you have any idea?&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Mary</description>
      <pubDate>Mon, 07 Apr 2014 18:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279511#M54650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-07T18:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Big Data: HIVE Table tHiveLoad OVERWRITE doesn´t work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279512#M54651</link>
      <description>Does the underlying HDFS files (or partitions) have necessary permissions for the Talend user. &amp;nbsp;Try giving 777 to the underlying HDFS file. &amp;nbsp;Also grant all on the table to the user running the job.&lt;BR /&gt;I am using 5.4 big data platform and seems to run fine. &amp;nbsp;The Hadoop distribution is Horton works HDP V1.2.&lt;BR /&gt;The SQL from Talend is:&lt;BR /&gt;INSERT OVERWRITE TABLE EDW_SHRD_VIEWS.DIM_DELTA SELECT NW.nm , NW.attr , NW.bgn_dt , NW.id , NW.end_dt , CASE WHEN OD.ID IS NULL THEN 'I' WHEN OD.ID IS NOT NULL AND OD.NM != NW.NM THEN 'UI' WHEN OD.ID is NOT NULL AND OD.ATTR !=NW.ATTR THEN 'U' ELSE 'N' END AS CHG_IND, OD.nm , OD.attr , OD.bgn_dt , OD.id , OD.end_dt &amp;nbsp;FROM &amp;nbsp;EDW_SHRD_VIEWS.STG_DIM NW LEFT OUTER JOIN &amp;nbsp;EDW_SHRD_VIEWS.DIM OD ON( &amp;nbsp;OD.id = NW.id &amp;nbsp;)</description>
      <pubDate>Tue, 22 Jul 2014 20:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Big-Data-HIVE-Table-tHiveLoad-OVERWRITE-doesn-t-work/m-p/2279512#M54651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T20:02:12Z</dc:date>
    </item>
  </channel>
</rss>

