<?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 combine Hive table files for input to mapreduce? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139685#M31999</link>
    <description>&lt;P&gt;Are you using HiveInputFormat, its better to use CombineInputFormat which combine all small files to generate a split.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 14:11:21 GMT</pubDate>
    <dc:creator>rajkumar_singh</dc:creator>
    <dc:date>2016-06-15T14:11:21Z</dc:date>
    <item>
      <title>How to combine Hive table files for input to mapreduce?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139684#M31998</link>
      <description>&lt;P&gt;I have a HDP 2.0 cluster where I'm executing a mapreduce program which takes Hive(0.14) table as input. There are a large number of small files for the Hive table and hence large number of mapper containers are being requested. Please let me know if there is a way to combine small files before being input to mapreduce job?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:08:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139684#M31998</guid>
      <dc:creator>phoncy_joseph</dc:creator>
      <dc:date>2016-06-15T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine Hive table files for input to mapreduce?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139685#M31999</link>
      <description>&lt;P&gt;Are you using HiveInputFormat, its better to use CombineInputFormat which combine all small files to generate a split.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:11:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139685#M31999</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-15T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine Hive table files for input to mapreduce?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139686#M32000</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2713/phoncyjoseph.html" nodeid="2713"&gt;@Phoncy Joseph&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You can set the input record size in hive to a higher value to reduce the number of mappers but you might need to increase the mapper heap size also.&lt;/P&gt;&lt;PRE&gt;set hive.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat;

set mapred.min.split.size=100000000;&lt;/PRE&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;Try using hadoop har file achieve to small file into single file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r1.2.1/hadoop_archives.html#Looking+Up+Files" target="_blank"&gt;https://hadoop.apache.org/docs/r1.2.1/hadoop_archives.html#Looking+Up+Files&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:01:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139686#M32000</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-15T16:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine Hive table files for input to mapreduce?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139687#M32001</link>
      <description>&lt;P&gt;Are there any counters that can assess this? I am trying the above properties but failing to see reduction in the number of mappers.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:16:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-combine-Hive-table-files-for-input-to-mapreduce/m-p/139687#M32001</guid>
      <dc:creator>amruthkesav_s</dc:creator>
      <dc:date>2018-02-06T17:16:11Z</dc:date>
    </item>
  </channel>
</rss>

