Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.6.0
-
None
-
None
Description
In 2.6 doing a `hadoop classpath` returns the following
classpath [--glob|--jar <path>|-h|--help] :
Prints the classpath needed to get the Hadoop jar and the required
libraries.
Options:
--glob expand wildcards
--jar <path> write classpath as manifest in jar named <path>
-h, --help print help
This is different from earlier releases.
However, passing any argument to the command will return the classpath as earlier
E.g. `hadoop classpath foo`
It would be nice to preserve the original behaviour for scripts that read the classpath using this command.
The fix seems to be a one line change in
hadoop-common-project/hadoop-common/src/main/bin/hadoop