Sambit Tripathy created HADOOP-10874:
----------------------------------------
Summary: hdfs dfs -getmerge can have an additional parameter for
sort order
Key: HADOOP-10874
URL: https://issues.apache.org/jira/browse/HADOOP-10874
Project: Hadoop Common
Issue Type: Wish
Components: fs
Reporter: Sambit Tripathy
Priority: Minor
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 {
--
This message was sent by Atlassian JIRA
(v6.2#6252)