hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "ShellScriptProgrammingGuide" by SomeOtherAccount
Date Tue, 08 Jul 2014 18:22:18 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "ShellScriptProgrammingGuide" page has been changed by SomeOtherAccount:
https://wiki.apache.org/hadoop/ShellScriptProgrammingGuide?action=diff&rev1=3&rev2=4

   1. Add a line to that script's `hadoop_usage` function that lists the name of the subcommand
and what it does.  This should be alphabetized.
  
   2. Add an additional entry in the case conditional. Depending upon what is being added,
several things may need to be done:
+ 
    a. Set the `CLASS` to the Java method.
  
    b. Add $HADOOP_CLIENT_OPTS to $HADOOP_OPTS (or, for YARN apps, $YARN_CLIENT_OPTS to $YARN_OPTS)
if this is an interactive application or for some other reason should have the user client
settings applied.
@@ -49, +50 @@

  
   * Output to the screen, especially for daemons, should be avoided.  No one wants to see
a multitude of messages during startup.  Errors should go to STDERR instead of STDOUT. Use
the `hadoop_error` function to make it clear in the code.
  
-  * If you need to add a new function, it should start with hadoop_ and declare any local
variables with the `local` tag.  This allows for 3rd parties to use our function libraries
without worry about conflicts.
+  * If you need to add a new function, it should start with hadoop_ and declare any local
variables with the `local` tag.  This allows for 3rd parties to use our function libraries
without worry around conflicts.
  
+  * This isn't Java.  CamelCase is weird.
+ 

Mime
View raw message