FAQ
[ https://issues.apache.org/jira/browse/HADOOP-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570811#action_12570811 ]

lohit vijayarenu commented on HADOOP-1902:
------------------------------------------

+1
Instead of ("") using (".") makes sense. unix show contents of CWD, and on DFS this lists user's directory.

du command throws an exception when the directory is not specified
------------------------------------------------------------------

Key: HADOOP-1902
URL: https://issues.apache.org/jira/browse/HADOOP-1902
Project: Hadoop Core
Issue Type: Bug
Components: dfs
Affects Versions: 0.13.1
Reporter: Mukund Madhugiri
Assignee: Mahadev konar
Attachments: Hadoop-1902_1.patch


Running the du command without specifying a directory throws an exception. It runs fine if a directory is specified. Here is the output
mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du
Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
at org.apache.hadoop.fs.Path.<init>(Path.java:90)
at org.apache.hadoop.fs.FsShell.du(FsShell.java:351)
at org.apache.hadoop.fs.FsShell.run(FsShell.java:1040)
at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:189)
at org.apache.hadoop.fs.FsShell.main(FsShell.java:1092)
[mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du .
Found 2 items
/user/mukundm/input 28578
/user/mukundm/output 747
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Hadoop QA (JIRA) at Feb 20, 2008 at 9:12 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570833#action_12570833 ]

    Hadoop QA commented on HADOOP-1902:
    -----------------------------------

    +1 overall. Here are the results of testing the latest attachment
    http://issues.apache.org/jira/secure/attachment/12376046/Hadoop-1902_1.patch
    against trunk revision 619744.

    @author +1. The patch does not contain any @author tags.

    tests included +1. The patch appears to include 3 new or modified tests.

    javadoc +1. The javadoc tool did not generate any warning messages.

    javac +1. The applied patch does not generate any new javac compiler warnings.

    release audit +1. The applied patch does not generate any new release audit warnings.

    findbugs +1. The patch does not introduce any new Findbugs warnings.

    core tests +1. The patch passed core unit tests.

    contrib tests +1. The patch passed contrib unit tests.

    Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1821/testReport/
    Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1821/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
    Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1821/artifact/trunk/build/test/checkstyle-errors.html
    Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1821/console

    This message is automatically generated.
    du command throws an exception when the directory is not specified
    ------------------------------------------------------------------

    Key: HADOOP-1902
    URL: https://issues.apache.org/jira/browse/HADOOP-1902
    Project: Hadoop Core
    Issue Type: Bug
    Components: dfs
    Affects Versions: 0.13.1
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Attachments: Hadoop-1902_1.patch


    Running the du command without specifying a directory throws an exception. It runs fine if a directory is specified. Here is the output
    mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du
    Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
    at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
    at org.apache.hadoop.fs.Path.<init>(Path.java:90)
    at org.apache.hadoop.fs.FsShell.du(FsShell.java:351)
    at org.apache.hadoop.fs.FsShell.run(FsShell.java:1040)
    at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:189)
    at org.apache.hadoop.fs.FsShell.main(FsShell.java:1092)
    [mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du .
    Found 2 items
    /user/mukundm/input 28578
    /user/mukundm/output 747
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hudson (JIRA) at Feb 22, 2008 at 12:13 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571370#action_12571370 ]

    Hudson commented on HADOOP-1902:
    --------------------------------

    Integrated in Hadoop-trunk #408 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/408/])
    du command throws an exception when the directory is not specified
    ------------------------------------------------------------------

    Key: HADOOP-1902
    URL: https://issues.apache.org/jira/browse/HADOOP-1902
    Project: Hadoop Core
    Issue Type: Bug
    Components: dfs
    Affects Versions: 0.13.1
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Fix For: 0.17.0

    Attachments: Hadoop-1902_1.patch


    Running the du command without specifying a directory throws an exception. It runs fine if a directory is specified. Here is the output
    mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du
    Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
    at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
    at org.apache.hadoop.fs.Path.<init>(Path.java:90)
    at org.apache.hadoop.fs.FsShell.du(FsShell.java:351)
    at org.apache.hadoop.fs.FsShell.run(FsShell.java:1040)
    at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:189)
    at org.apache.hadoop.fs.FsShell.main(FsShell.java:1092)
    [mukundm@ucdev28 hadoop]$ bin/hadoop dfs -du .
    Found 2 items
    /user/mukundm/input 28578
    /user/mukundm/output 747
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedFeb 20, '08 at 7:48p
activeFeb 22, '08 at 12:13p
posts3
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Hudson (JIRA): 3 posts

People

Translate

site design / logo © 2022 Grokbase