<?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 Is there a way that i can move the outputs to subfolder of output path.? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-i-can-move-the-outputs-to-subfolder-of/m-p/29861#M6659</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying a solution, in which i have to take files recursively from the folder and perform few calculations and send the required data to output folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is little dependency on the date of the file. I am using multipleoutputs for now, to have that date in file name.&lt;/P&gt;&lt;P&gt;But, it will be very good, if i there is a chance of creating sub folders in the output path with dates and move the respective files into that folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way is to use FileSystem and create required directory and write the file output, without any output from mapreduce.&lt;/P&gt;&lt;P&gt;But, is there a way i can make mapreduce to write into required sub folder.? might not be possible, but just want to give a thought.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:34:51 GMT</pubDate>
    <dc:creator>Srini_D</dc:creator>
    <dc:date>2022-09-16T09:34:51Z</dc:date>
    <item>
      <title>Is there a way that i can move the outputs to subfolder of output path.?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-i-can-move-the-outputs-to-subfolder-of/m-p/29861#M6659</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying a solution, in which i have to take files recursively from the folder and perform few calculations and send the required data to output folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is little dependency on the date of the file. I am using multipleoutputs for now, to have that date in file name.&lt;/P&gt;&lt;P&gt;But, it will be very good, if i there is a chance of creating sub folders in the output path with dates and move the respective files into that folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way is to use FileSystem and create required directory and write the file output, without any output from mapreduce.&lt;/P&gt;&lt;P&gt;But, is there a way i can make mapreduce to write into required sub folder.? might not be possible, but just want to give a thought.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-i-can-move-the-outputs-to-subfolder-of/m-p/29861#M6659</guid>
      <dc:creator>Srini_D</dc:creator>
      <dc:date>2022-09-16T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way that i can move the outputs to subfolder of output path.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-i-can-move-the-outputs-to-subfolder-of/m-p/29868#M6660</link>
      <description>In MultipleOutput's write(K, V, String) method, you can pass a relative&lt;BR /&gt;path for the baseOutputPath (last) argument such as&lt;BR /&gt;"my-sub-dir/my-filename-prefix". This will allow you to produce&lt;BR /&gt;subdirectories under the job output directory.&lt;BR /&gt;&lt;BR /&gt;Please ensure to use only relative paths, and not absolute ones, as&lt;BR /&gt;otherwise your output paths will not be respected by the&lt;BR /&gt;FileOutputCommitter process.</description>
      <pubDate>Tue, 21 Jul 2015 06:05:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-i-can-move-the-outputs-to-subfolder-of/m-p/29868#M6660</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-21T06:05:02Z</dc:date>
    </item>
  </channel>
</rss>

