<?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: Mapreduce program to display word having highest count in file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/311890#M3584</link>
    <description>&lt;P&gt;that output comes after the reduce function not map&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 14:46:07 GMT</pubDate>
    <dc:creator>silla</dc:creator>
    <dc:date>2021-02-22T14:46:07Z</dc:date>
    <item>
      <title>Mapreduce program to display word having highest count in file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/21286#M3581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me on this ? I want to write map reduce program which will display a&amp;nbsp;word which repeated highest time in file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way to modify wordcount mapreduce program to display only single row as word, # of count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sach&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:12:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/21286#M3581</guid>
      <dc:creator>Sach</dc:creator>
      <dc:date>2022-09-16T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapreduce program to display word having highest count in file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/21329#M3582</link>
      <description>&lt;P&gt;it seems you still don't know the main concept of map and reduce. basically, your question is very easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe you know, every output from map will be sorted &amp;nbsp;by word automatically, so as the original output of course is not suit to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example you have these&amp;nbsp;original words like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"i &amp;nbsp;love love love you and &amp;nbsp;love love you"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the output after map will be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;i &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;love &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;you &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so after you get these words input in Reduce, you just save the number, &amp;nbsp;and compare them, after you get the max, then output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2014 14:09:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/21329#M3582</guid>
      <dc:creator>iamfromsky</dc:creator>
      <dc:date>2014-11-08T14:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mapreduce program to display word having highest count in file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/22120#M3583</link>
      <description>The simplest way to express this, beginning with a raw text file, would be to do the two steps below:&lt;BR /&gt;&lt;BR /&gt;1. First, use MR to form a word count. Split each line into words and count them as 1 each in Mapper, and aggregate they counts by word as key in Reducer.&lt;BR /&gt;2. Second, use yet another subsequent MR job to read and invert the key to sort it in the opposite form, wherein the key is now the count and the value are the words that match the count. Run either with a TotalOrderPartitioner or a single reducer to get your final result.</description>
      <pubDate>Sun, 30 Nov 2014 13:07:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/22120#M3583</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-11-30T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapreduce program to display word having highest count in file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/311890#M3584</link>
      <description>&lt;P&gt;that output comes after the reduce function not map&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 14:46:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mapreduce-program-to-display-word-having-highest-count-in/m-p/311890#M3584</guid>
      <dc:creator>silla</dc:creator>
      <dc:date>2021-02-22T14:46:07Z</dc:date>
    </item>
  </channel>
</rss>

