You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2014/07/08 20:22:18 UTC

[Hadoop Wiki] Trivial Update of "ShellScriptProgrammingGuide" by SomeOtherAccount

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.
+