hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eh...@apache.org
Subject svn commit: r1582448 - /hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java
Date Thu, 27 Mar 2014 19:13:22 GMT
Author: ehans
Date: Thu Mar 27 19:13:22 2014
New Revision: 1582448

URL: http://svn.apache.org/r1582448
Log:
HIVE-6546: WebHCat job submission for pig with -useHCatalog argument fails on Windows (Eric
Hanson, reviewed by Thejas Nair)

Modified:
    hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java

Modified: hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java?rev=1582448&r1=1582447&r2=1582448&view=diff
==============================================================================
--- hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java
(original)
+++ hive/trunk/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobSubmissionConstants.java
Thu Mar 27 19:13:22 2014
@@ -33,7 +33,14 @@ public interface JobSubmissionConstants 
   public static final String EXIT_FNAME = "exit";
   public static final int WATCHER_TIMEOUT_SECS = 10;
   public static final int KEEP_ALIVE_MSEC = 60 * 1000;
-  public static final String TOKEN_FILE_ARG_PLACEHOLDER = "__WEBHCAT_TOKEN_FILE_LOCATION__";
+  /*
+   * The = sign in the string for TOKEN_FILE_ARG_PLACEHOLDER is required because
+   * org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows() prepares
+   * arguments expecting an = sign. It will fail to prepare the arguments correctly
+   * without the = sign present.
+   */
+  public static final String TOKEN_FILE_ARG_PLACEHOLDER =
+    "__MR_JOB_CREDENTIALS_OPTION=WEBHCAT_TOKEN_FILE_LOCATION__";
   /**
    * constants needed for Pig job submission
    */



Mime
View raw message