You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by jc...@apache.org on 2012/10/29 21:56:35 UTC

svn commit: r1403502 - in /pig/trunk: CHANGES.txt bin/pig src/org/apache/pig/Main.java

Author: jcoveney
Date: Mon Oct 29 20:56:34 2012
New Revision: 1403502

URL: http://svn.apache.org/viewvc?rev=1403502&view=rev
Log:
PIG-2990: the -secretDebugCmd shouldnt be a secret and should just be...a command (jcoveney)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/bin/pig
    pig/trunk/src/org/apache/pig/Main.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1403502&r1=1403501&r2=1403502&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Mon Oct 29 20:56:34 2012
@@ -24,6 +24,8 @@ INCOMPATIBLE CHANGES
 
 IMPROVEMENTS
 
+PIG-2990: the -secretDebugCmd shouldn't be a secret and should just be...a command (jcoveney)
+
 PIG-2941: Ivy resolvers in pig don't have consistent chaining and don't have a kitchen sink option for novices (jgordon via azaroth)
 
 PIG-2778: Add 'matches' operator to predicate pushdown (cheolsoo via jcoveney)

Modified: pig/trunk/bin/pig
URL: http://svn.apache.org/viewvc/pig/trunk/bin/pig?rev=1403502&r1=1403501&r2=1403502&view=diff
==============================================================================
--- pig/trunk/bin/pig (original)
+++ pig/trunk/bin/pig Mon Oct 29 20:56:34 2012
@@ -51,7 +51,7 @@ addJarString=-Dpig.additional.jars\=;
 additionalJars="";
 # filter command line parameter
 for f in "$@"; do
-     if [[ $f == "-secretDebugCmd" ]]; then
+     if [[ $f == "-secretDebugCmd" || $f == "-printCmdDebug" ]]; then
         debug=true
       elif [[ $f == "-useHCatalog" ]]; then
         # if need to use hcatalog, we need to add the hcatalog and hive jars

Modified: pig/trunk/src/org/apache/pig/Main.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/Main.java?rev=1403502&r1=1403501&r2=1403502&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/Main.java (original)
+++ pig/trunk/src/org/apache/pig/Main.java Mon Oct 29 20:56:34 2012
@@ -869,6 +869,8 @@ public static void usage()
         System.out.println("    -F, -stop_on_failure - Aborts execution on the first failed job; default is off");
         System.out.println("    -M, -no_multiquery - Turn multiquery optimization off; default is on");
         System.out.println("    -P, -propertyFile - Path to property file");
+        System.out.println("    -printCmdDebug - Overrides anything else and prints the actual command used to run Pig, including");
+        System.out.println("                     any environment variables that are set by the pig command.");
 }
 
 public static void printProperties(){