<?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: How to create a hadoop custom inputformat/fileinputformat in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175445#M75432</link>
    <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/44302/kgautam.html" nodeid="44302"&gt;@kgautam&lt;/A&gt; this is really helpful.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 09:04:59 GMT</pubDate>
    <dc:creator>melvinmendoza</dc:creator>
    <dc:date>2018-03-08T09:04:59Z</dc:date>
    <item>
      <title>How to create a hadoop custom inputformat/fileinputformat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175443#M75430</link>
      <description>&lt;P&gt;Any knows or have a tutorial?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:50:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175443#M75430</guid>
      <dc:creator>melvinmendoza</dc:creator>
      <dc:date>2018-03-07T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a hadoop custom inputformat/fileinputformat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175444#M75431</link>
      <description>&lt;P&gt;Please go through the  basic understanding of InputFormats and Record Readers &lt;/P&gt;&lt;P&gt;&lt;A href="http://bytepadding.com/big-data/map-reduce/how-records-are-handled-map-reduce/" target="_blank"&gt;http://bytepadding.com/big-data/map-reduce/how-records-are-handled-map-reduce/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://bytepadding.com/big-data/map-reduce/how-records-are-handled-map-reduce/" target="_blank"&gt;http://bytepadding.com/big-data/map-reduce/how-records-are-handled-map-reduce/&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Example of custom Input Formats &lt;/P&gt;&lt;P&gt;&lt;A href="http://bytepadding.com/big-data/spark/combineparquetfileinputformat/" target="_blank"&gt;http://bytepadding.com/big-data/spark/combineparquetfileinputformat/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Few pointers:&lt;BR /&gt;1. Start with basic understanding of Splits, InputFormats, Record Readers, File formats and compression.&lt;BR /&gt;2. Go through the code of TextInputFormat  :  &lt;A href="http://grepcode.com/file/repo1.maven.org/maven2/com.ning/metrics.collector/1.1.0-pre7/org/apache/hadoop/mapreduce/lib/input/TextInputFormat.java" target="_blank"&gt;http://grepcode.com/file/repo1.maven.org/maven2/com.ning/metrics.collector/1.1.0-pre7/org/apache/hadoop/mapreduce/lib/input/TextInputFormat.java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. FileInputFormat is the abstract class or the Base class for all input formats go through the basic functionality&lt;/P&gt;&lt;P&gt;&lt;A href="http://grepcode.com/file/repo1.maven.org/maven2/com.ning/metrics.collector/1.1.0-pre7/org/apache/hadoop/mapreduce/lib/input/FileInputFormat.java#FileInputFormat" target="_blank"&gt;http://grepcode.com/file/repo1.maven.org/maven2/com.ning/metrics.collector/1.1.0-pre7/org/apache/hadoop/mapreduce/lib/input/FileInputFormat.java#FileInputFormat&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;4. Decide upon what is the logical record for your InputFormat and whats the splitting Strateggy, depending on this extend the &lt;/P&gt;&lt;P&gt;FileInputFormat and override/ implement getSplits() and getRecordReader() methods. &lt;BR /&gt;&lt;BR /&gt;FileInputFormat important method:   &lt;BR /&gt; getSplits() :  each task will read one split,  what is the start file index and end inex for this split&lt;BR /&gt;getRecordReader() : the split being read how bytes needs to be converted into bytes. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:43:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175444#M75431</guid>
      <dc:creator>kgautam</dc:creator>
      <dc:date>2018-03-07T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a hadoop custom inputformat/fileinputformat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175445#M75432</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/44302/kgautam.html" nodeid="44302"&gt;@kgautam&lt;/A&gt; this is really helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:04:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-hadoop-custom-inputformat-fileinputformat/m-p/175445#M75432</guid>
      <dc:creator>melvinmendoza</dc:creator>
      <dc:date>2018-03-08T09:04:59Z</dc:date>
    </item>
  </channel>
</rss>

