<?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 Re: tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367390#M130772</link>
    <description>I saw that there is a ticket on jira&amp;nbsp; for this: so this seems to be a bug.</description>
    <pubDate>Thu, 30 Jul 2015 13:04:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-30T13:04:38Z</dc:date>
    <item>
      <title>tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367386#M130768</link>
      <description>Hi, 
&lt;BR /&gt;I am trying to run the below Talend Map Reduce Job that reads a file from HDFS and load it into HDFS again after minor changes. 
&lt;BR /&gt;tHDFS_Input -&amp;gt; tMap -&amp;gt; tHDFS_Output 
&lt;BR /&gt;The schema of the input component is: field1 -string, field2-string,field3-string. I set the Row separator to "\n" and the Field separator to "," and all fields are Nullable. Everything works as expected if the input file contains rows like (with null value for all columns except the last one): 
&lt;BR /&gt;text11,text12,text13 
&lt;BR /&gt;,text22,text23 
&lt;BR /&gt;text31,,text33 
&lt;BR /&gt;but fails if the input file contains a row that has a null value for the last field (text41,text42,) with the following error: 
&lt;BR /&gt;Task Id : attempt_1429539242538_61552_m_000001_0, Status : FAILED 
&lt;BR /&gt;Error: java.lang.ArrayIndexOutOfBoundsException: 2 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sp5.testinput_0_1.testInput$row1StructInputFormat$HDFSRecordReader.next(testInput.java:337) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sp5.testinput_0_1.testInput$row1StructInputFormat$HDFSRecordReader.next(testInput.java:1) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.moveToNext(MapTask.java:198) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.next(MapTask.java:184) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:52) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.AccessController.doPrivileged(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.security.auth.Subject.doAs(Subject.java:415) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162) 
&lt;BR /&gt;Is this the expected behavior? I tried the tFileInputDelimited component and it is able to detect that the last field is null. 
&lt;BR /&gt;I use Talend Platform for Data Services with Big Data Version: 5.6.1. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Anca</description>
      <pubDate>Fri, 12 Jun 2015 08:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367386#M130768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-12T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367387#M130769</link>
      <description>Any help would be appreciated!</description>
      <pubDate>Mon, 15 Jun 2015 09:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367387#M130769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-15T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367388#M130770</link>
      <description>Can anyone help on the above issue please?</description>
      <pubDate>Thu, 18 Jun 2015 07:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367388#M130770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T07:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367389#M130771</link>
      <description>is that a bug or did I miss something?
&lt;BR /&gt;any updates?</description>
      <pubDate>Mon, 22 Jun 2015 08:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367389#M130771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSInput ArrayIndexOutOfBoundsException in MapReduce job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367390#M130772</link>
      <description>I saw that there is a ticket on jira&amp;nbsp; for this: so this seems to be a bug.</description>
      <pubDate>Thu, 30 Jul 2015 13:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSInput-ArrayIndexOutOfBoundsException-in-MapReduce-job/m-p/2367390#M130772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T13:04:38Z</dc:date>
    </item>
  </channel>
</rss>

