hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [1/2] hadoop git commit: HADOOP-13151. Underscores should be escaped in dynamic subcommands document
Date Sun, 15 May 2016 15:29:05 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HADOOP-12930 2cb947f07 -> 1d5cc1109


HADOOP-13151. Underscores should be escaped in dynamic subcommands document


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/fc6e75ee
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/fc6e75ee
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/fc6e75ee

Branch: refs/heads/HADOOP-12930
Commit: fc6e75eeebf31a3aff341596393dc211c2f8ec01
Parents: 2cb947f
Author: Allen Wittenauer <aw@apache.org>
Authored: Sun May 15 08:26:24 2016 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Sun May 15 08:26:24 2016 -0700

----------------------------------------------------------------------
 .../hadoop-common/src/site/markdown/UnixShellGuide.md            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/fc6e75ee/hadoop-common-project/hadoop-common/src/site/markdown/UnixShellGuide.md
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/UnixShellGuide.md b/hadoop-common-project/hadoop-common/src/site/markdown/UnixShellGuide.md
index 245013a..b6d7517 100644
--- a/hadoop-common-project/hadoop-common/src/site/markdown/UnixShellGuide.md
+++ b/hadoop-common-project/hadoop-common/src/site/markdown/UnixShellGuide.md
@@ -115,7 +115,7 @@ would go into `.hadooprc`
 
 Utilizing the Shell API, it is possible for third parties to add their own subcommands to
the primary Hadoop shell scripts (hadoop, hdfs, mapred, yarn).
 
-Prior to executing a subcommand, the primary scripts will check for the existence of a (scriptname)_subcommand_(subcommand)
function.  This function gets executed with the parameters set to all remaining command line
arguments.  For example, if the following function is defined:
+Prior to executing a subcommand, the primary scripts will check for the existence of a (scriptname)\_subcommand\_(subcommand)
function.  This function gets executed with the parameters set to all remaining command line
arguments.  For example, if the following function is defined:
 
 ```bash
 function yarn_subcommand_hello
@@ -190,4 +190,4 @@ If this command can be executed as a daemon, set this to true.
 
 This is the full content of the command line, prior to any parsing done. It will contain
flags such as `--debug`.  It MAY NOT be manipulated.
 
-The Apache Hadoop runtime facilities require functions exit if no further processing is required.
 For example, in the hello example above, Java and other facilities were not required so a
simple `exit $?` was sufficient.  However, if the function were to utilize `HADOOP\_CLASSNAME`,
then program execution must continue so that Java with the Apache Hadoop-specific parameters
will be launched against the given Java class. Another example would be in the case of an
unrecoverable error.  It is the function's responsibility to print an appropriate message
(preferably using the hadoop_error API call) and exit appropriately.
+The Apache Hadoop runtime facilities require functions exit if no further processing is required.
 For example, in the hello example above, Java and other facilities were not required so a
simple `exit $?` was sufficient.  However, if the function were to utilize `HADOOP_CLASSNAME`,
then program execution must continue so that Java with the Apache Hadoop-specific parameters
will be launched against the given Java class. Another example would be in the case of an
unrecoverable error.  It is the function's responsibility to print an appropriate message
(preferably using the hadoop_error API call) and exit appropriately.


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message