Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10874

hdfs dfs -getmerge can have an additional parameter for sort order

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • fs
    • None
    • fs shell, hdfs

    Description

      Default implementation sorts the array in ascending order of the files, a parameter can be added to current implementation so that it can sort in descending order as well.

      Current impl:
      public static boolean More ...copyMerge(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String addString) throws IOException {

      Proposed:
      public static boolean More ...copyMerge(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String addString, boolean sort) throws IOException {

      Attachments

        Activity

          People

            Unassigned Unassigned
            sambit19 Sambit Tripathy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: