Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
[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()
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-2930 bin/hdfs should print a message when an invalid command is specified
- Resolved
- is related to
-
HADOOP-11010 Post-9902 "Umbrella" JIRA
- Resolved
- relates to
-
HADOOP-3281 bin/hadoop script should check class name before running java
- Resolved
-
HADOOP-11150 hadoop command should show the reason on failure by invalid COMMAND or CLASSNAME
- Resolved