<?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 MutlipleOutputs writing zero records to output file. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29849#M6656</link>
    <description>&lt;P&gt;I have mapreduce code, in which i have used multipleOutputs.write for writing the output fo my own file convention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used following line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;multipleOutputs.write(new Text(line), NullWritable.get(),"srini-file");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, i am getting file with srini-file-m-00000 with 0 records in it. However, if i have used context.write, then the output came properly.&lt;/P&gt;&lt;P&gt;Please let me know, if there is any important point i missed in multipleoutputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:34:48 GMT</pubDate>
    <dc:creator>Srini_D</dc:creator>
    <dc:date>2022-09-16T09:34:48Z</dc:date>
    <item>
      <title>MutlipleOutputs writing zero records to output file.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29849#M6656</link>
      <description>&lt;P&gt;I have mapreduce code, in which i have used multipleOutputs.write for writing the output fo my own file convention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used following line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;multipleOutputs.write(new Text(line), NullWritable.get(),"srini-file");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, i am getting file with srini-file-m-00000 with 0 records in it. However, if i have used context.write, then the output came properly.&lt;/P&gt;&lt;P&gt;Please let me know, if there is any important point i missed in multipleoutputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:34:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29849#M6656</guid>
      <dc:creator>Srini_D</dc:creator>
      <dc:date>2022-09-16T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: MutlipleOutputs writing zero records to output file.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29855#M6657</link>
      <description>Are you ensuring to call multipleOutputs.close() in the cleanup phase? If that is not done, the file won't be closed up, and would be left hanging open for an hour during which you can't see any written data.&lt;BR /&gt;&lt;BR /&gt;If you're already doing that, please share your code here so we can take a look at what may be going wrong.</description>
      <pubDate>Tue, 21 Jul 2015 03:35:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29855#M6657</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-21T03:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: MutlipleOutputs writing zero records to output file.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29859#M6658</link>
      <description>&lt;P&gt;Thank you Harsh&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 04:21:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/MutlipleOutputs-writing-zero-records-to-output-file/m-p/29859#M6658</guid>
      <dc:creator>Srini_D</dc:creator>
      <dc:date>2015-07-21T04:21:42Z</dc:date>
    </item>
  </channel>
</rss>

