Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
When the first parameter ($1) cannot be matched with one of existing hadoop commnads, the parameter will be considered as a class name and the script will pass it to java. For examples,
bash-3.2$ ./bin/hadoop -version java version "1.5.0_14" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode) bash-3.2$ ./bin/hadoop -help Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) ...
The behavior above is confusing. We should check whether the parameter is a valid class name before passing it to java.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-11092 hadoop shell commands should print usage if not given a class
- Resolved