This is an automated email from the ASF dual-hosted git repository.

sodonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 9798cdb  HDDS-3686. Insert an argument of ozone shell to accept jvm 
arguments (#991)
9798cdb is described below

commit 9798cdb2397fba739c9f435368ff68f7d5b12897
Author: maobaolong <[email protected]>
AuthorDate: Tue Jun 9 20:08:20 2020 +0800

    HDDS-3686. Insert an argument of ozone shell to accept jvm arguments (#991)
---
 hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh | 6 ++++++
 hadoop-ozone/dist/src/shell/ozone/ozone              | 1 +
 2 files changed, 7 insertions(+)

diff --git a/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh 
b/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh
index 937f266..d2b4df9 100755
--- a/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh
+++ b/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh
@@ -2573,6 +2573,12 @@ function hadoop_parse_args
         shift
         ((HADOOP_PARSE_COUNTER=HADOOP_PARSE_COUNTER+1))
       ;;
+      --jvmargs)
+        shift
+        hadoop_add_param HADOOP_OPTS "$1" "$1"
+        shift
+        ((HADOOP_PARSE_COUNTER=HADOOP_PARSE_COUNTER+2))
+      ;;
       --config)
         shift
         confdir=$1
diff --git a/hadoop-ozone/dist/src/shell/ozone/ozone 
b/hadoop-ozone/dist/src/shell/ozone/ozone
index ab7c127..efcb312 100755
--- a/hadoop-ozone/dist/src/shell/ozone/ozone
+++ b/hadoop-ozone/dist/src/shell/ozone/ozone
@@ -31,6 +31,7 @@ function hadoop_usage
   hadoop_add_option "--hosts filename" "list of hosts to use in worker mode"
   hadoop_add_option "--loglevel level" "set the log4j level for this command"
   hadoop_add_option "--workers" "turn on worker mode"
+  hadoop_add_option "--jvmargs arguments" "append JVM options to any existing 
options defined in the HADOOP_OPTS environment variable. Any defined in 
HADOOP_CLIENT_OPTS will be append after these jvmargs"
 
   hadoop_add_subcommand "auditparser" client "runs audit parser tool"
   hadoop_add_subcommand "classpath" client "prints the class path needed to 
get the hadoop jar and the required libraries"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to