[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504012#comment-13504012 ] Daryn Sharp commented on HADOOP-9066: - HADOOP-8934 is already adding sort options to FsShell's ls. This jira may no longer be required. > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503114#comment-13503114 ] Harsh J commented on HADOOP-9066: - Hi David, A few comments. # We accept contributions in patches (i.e. in unified diff format) made against trunk, not as source files. Please read the page http://wiki.apache.org/hadoop/HowToContribute for more details on how to contribute in a way that is easier to accept. # These comparables seem useful in a utility such as the {{fs -ls}} if they are not already present, but maybe not so much in the core (like say MR). Can you instead target these comparator switches to match {{ls}} options and have {{fs -ls}} do the work? See class "Ls" in hadoop-common's org.apache.hadoop.fs.shell package for the {{fs -ls}} implementation. Regards, Harsh > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503096#comment-13503096 ] david king commented on HADOOP-9066: Use the FileStatusTool to sort the array of FileStstus[], for examle: //Ascending the array of FileStatus[] FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusAscComparable()); //Descending the array of FileStatus[] FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusDescComparable()); > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503095#comment-13503095 ] david king commented on HADOOP-9066: Hey Harsh J: what wrong with the batch? could you give me some suggestion? > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501707#comment-13501707 ] david king commented on HADOOP-9066: Hey Harsh J: How did mainipulate this batch ? Did it have any problems? > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500947#comment-13500947 ] david king commented on HADOOP-9066: I have upload the new TestCase-TestFileStatusTool , Use the FileStatusTool to sort the array of FileStstus[], for examle: //Ascending the array of FileStatus[] FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusAscComparable()); //Descending the array of FileStatus[] FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusDescComparable()); > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 > ,eclipse-jee-juno-linux-gtk.tar.gz >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator, the Comparator not only customer to realizate , but alse use the > example code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500935#comment-13500935 ] Harsh J commented on HADOOP-9066: - Hey David, Thanks! Could you add a comment in for more use-cases of what you are proposing to enhance/add so that we have a better idea? > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500934#comment-13500934 ] david king commented on HADOOP-9066: Hi ,I come from china, I am glad to contribute the codes for hadoop, It is first time to submit code, if has any problem ,please contact me , my Email : xpws2...@163.com . thank you . > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
[ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500936#comment-13500936 ] Harsh J commented on HADOOP-9066: - Also you may want to read http://wiki.apache.org/hadoop/HowToContribute. > Sorting for FileStatus[] > > > Key: HADOOP-9066 > URL: https://issues.apache.org/jira/browse/HADOOP-9066 > Project: Hadoop Common > Issue Type: Improvement > Environment: java7 , RedHat9 , Hadoop 0.20.2 >Reporter: david king > Labels: patch > Attachments: ConcreteFileStatusAscComparable.java, > ConcreteFileStatusDescComparable.java, FileStatusComparable.java, > FileStatusTool.java, TestFileStatusTool.java > > > I will submit a batch of FileStatusTool that used to sort FileStatus by the > Comparator -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira