hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11092) hadoop shell commands should print usage if not given a class
Date Wed, 24 Sep 2014 11:19:35 GMT

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

Hudson commented on HADOOP-11092:
---------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #690 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/690/])
HADOOP-11092. hadoop shell commands should print usage if not given a class (aw) (aw: rev
3dc28e2052dd3a8e4cd5888fc4f9e7e37f8bc062)
* hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-mapreduce-project/bin/mapred
* hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
* hadoop-common-project/hadoop-common/src/main/bin/hadoop
* hadoop-yarn-project/hadoop-yarn/bin/yarn


> hadoop shell commands should print usage if not given a class
> -------------------------------------------------------------
>
>                 Key: HADOOP-11092
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11092
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>            Reporter: Bruno Mahé
>            Assignee: Allen Wittenauer
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-11092.patch, HDFS-2565.patch, HDFS-2565.patch
>
>
> [root@bigtop-fedora-15 ~]# hdfs foobar
> Exception in thread "main" java.lang.NoClassDefFoundError: foobar
> Caused by: java.lang.ClassNotFoundException: foobar
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: foobar. Program will exit.
> Instead of loading any class, it would be nice to explain the command is not valid and
to call print_usage()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message