This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 194f0b4 HDDS-631. Ozone classpath shell command is not working.
Contributed by Elek, Marton.
194f0b4 is described below
commit 194f0b49fb8ae3b876dde82f04f906f0ab0f5bdf
Author: Márton Elek <[email protected]>
AuthorDate: Fri Feb 1 14:40:23 2019 +0100
HDDS-631. Ozone classpath shell command is not working. Contributed by
Elek, Marton.
---
hadoop-ozone/common/src/main/bin/ozone | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/hadoop-ozone/common/src/main/bin/ozone
b/hadoop-ozone/common/src/main/bin/ozone
index 9e4b07c..8a2e3af 100755
--- a/hadoop-ozone/common/src/main/bin/ozone
+++ b/hadoop-ozone/common/src/main/bin/ozone
@@ -69,7 +69,20 @@ function ozonecmd_case
OZONE_RUN_ARTIFACT_NAME="hadoop-ozone-tools"
;;
classpath)
- hadoop_do_classpath_subcommand HADOOP_CLASSNAME "$@"
+ if [[ "$#" -gt 0 ]]; then
+ OZONE_RUN_ARTIFACT_NAME="$1"
+ HADOOP_CLASSNAME="org.apache.hadoop.util.Classpath"
+ #remove the artifact name and replace it with glob
+ # (We need at least one argument to execute the Classpath helper class)
+ HADOOP_SUBCMD_ARGS[0]="--glob"
+ else
+ hadoop_finalize
+ echo "Usage: ozone classpath <ARTIFACTNAME>"
+ echo "Where the artifact name is one of:"
+ echo ""
+ ls -1 ${HADOOP_HDFS_HOME}/share/ozone/classpath/ | sed 's/.classpath//'
+ exit -1
+ fi
;;
datanode)
HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]