<?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: CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125504#M26879</link>
    <description>&lt;P&gt;No, I added the partition using:&lt;/P&gt;&lt;PRE&gt;ALTER TABLE mytable
ADD PARTITION (partitioncolumn="2016-04-30")
LOCATION '/user/data/partitioncolumn=2016-04-30'
&lt;/PRE&gt;&lt;P&gt;By the way, splitting the file into two and adding to the same partition folder works. When I put the complete file in the folder, it always gave me this exception.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 21:22:31 GMT</pubDate>
    <dc:creator>ammar_rizvi</dc:creator>
    <dc:date>2016-05-02T21:22:31Z</dc:date>
    <item>
      <title>CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125502#M26877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an external partitioned table and the partition is based on 4 CSV files of &amp;lt; 2GB each. One file causes the problem as soon as added to the partition directory.&lt;/P&gt;&lt;P&gt;Splitting the file into two equal parts (based on row count 4071510/2) using the command line "split" command solves the problem. I am completely unable to figure out what the problem is. Here's the stack trace:&lt;/P&gt;&lt;PRE&gt;Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_1461850869883_0002_6_00, diagnostics=[Task failed, taskId=task_1461850869883_0002_6_00_000000, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: java.lang.IndexOutOfBoundsException&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2016 19:39:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125502#M26877</guid>
      <dc:creator>ammar_rizvi</dc:creator>
      <dc:date>2016-05-02T19:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125503#M26878</link>
      <description>&lt;P&gt;Hive doesn't have the limit on the max row count. You said its external partitioned table, did you add partitions using &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;MSCK REPAIR TABLE (or ALTER TABLE RECOVER PARTITIONS)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 02 May 2016 21:19:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125503#M26878</guid>
      <dc:creator>rnalakurthi</dc:creator>
      <dc:date>2016-05-02T21:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125504#M26879</link>
      <description>&lt;P&gt;No, I added the partition using:&lt;/P&gt;&lt;PRE&gt;ALTER TABLE mytable
ADD PARTITION (partitioncolumn="2016-04-30")
LOCATION '/user/data/partitioncolumn=2016-04-30'
&lt;/PRE&gt;&lt;P&gt;By the way, splitting the file into two and adding to the same partition folder works. When I put the complete file in the folder, it always gave me this exception.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 21:22:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125504#M26879</guid>
      <dc:creator>ammar_rizvi</dc:creator>
      <dc:date>2016-05-02T21:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125505#M26880</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10162/ammarrizvi.html" nodeid="10162"&gt;@Ammar Rizvi&lt;/A&gt; Can you try setting &lt;STRONG&gt;&lt;EM&gt;hive.tez.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat&lt;/EM&gt;&lt;/STRONG&gt; and then execute the same query?&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 18:18:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125505#M26880</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-04T18:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file causing Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125506#M26881</link>
      <description>&lt;P&gt;Worked like a charm! Could you please also leave a short comment so that I could understand what was happening and how this setting fixed it?&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 22:35:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CSV-file-causing-Execution-Error-return-code-2-from-org/m-p/125506#M26881</guid>
      <dc:creator>ammar_rizvi</dc:creator>
      <dc:date>2016-05-10T22:35:50Z</dc:date>
    </item>
  </channel>
</rss>

