Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 59259 invoked from network); 16 Sep 2008 11:15:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2008 11:15:40 -0000 Received: (qmail 80753 invoked by uid 500); 16 Sep 2008 11:15:32 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 80728 invoked by uid 500); 16 Sep 2008 11:15:32 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 80710 invoked by uid 99); 16 Sep 2008 11:15:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 04:15:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 11:14:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C54D234C1D6 for ; Tue, 16 Sep 2008 04:14:44 -0700 (PDT) Message-ID: <1914650073.1221563684377.JavaMail.jira@brutus> Date: Tue, 16 Sep 2008 04:14:44 -0700 (PDT) From: "Hadoop QA (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3911) ' -blocks ' option not being recognized In-Reply-To: <1445359804.1218051644189.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631337#action_12631337 ] Hadoop QA commented on HADOOP-3911: ----------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12390048/HADOOP-3911.patch against trunk revision 695755. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no tests are needed for this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3270/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3270/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3270/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3270/console This message is automatically generated. > ' -blocks ' option not being recognized > --------------------------------------- > > Key: HADOOP-3911 > URL: https://issues.apache.org/jira/browse/HADOOP-3911 > Project: Hadoop Core > Issue Type: Bug > Components: fs, util > Environment: branch-0.18 > Reporter: Koji Noguchi > Assignee: Lohit Vijayarenu > Priority: Minor > Attachments: HADOOP-3911.patch > > > Somehow depending on the order of options, GenericOptionsParser throws an error. > This fail. > {noformat} > [knoguchi@gsgw2001 tmp]$ ~/branch-0.18/bin/hadoop fsck > Usage: DFSck [-move | -delete | -openforwrite] [-files [-blocks [-locations | -racks]]] > [knoguchi@tmp]$ ~/branch-0.18/bin/hadoop fsck -files -blocks -locations /user/knoguchi > java.io.FileNotFoundException: File -blocks does not exist. > at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:278) > at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:233) > at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:315) > at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:134) > at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:119) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.dfs.DFSck.main(DFSck.java:137) > ...Status: HEALTHY > Total size: 2769 B > Total dirs: 4 > Total files: 3 > Total blocks (validated): 3 (avg. block size 923 B) > ... > {noformat} > This works. > {noformat} > [knoguchi@tmp]$ ~/branch-0.18/bin/hadoop fsck -blocks -locations -files /user/knoguchi > /user/knoguchi/.Trash > /user/knoguchi/hod-logs > /user/knoguchi/hod-logs/____ > /user/knoguchi/hod-logs/____/aaa.tar.gz 1024 bytes, 1 block(s): OK > 0. blk_-5724352734215884188_0 len=1024 repl=3 [11.111.11.11:11111, 22.22.22.22:11111, 33.33.33.33:11111] > ... > /user/knoguchi/mapredsystem > Status: HEALTHY > Total size: 2769 B > Total dirs: 4 > Total files: 3 > Total blocks (validated): 3 (avg. block size 923 B) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.