FAQ
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
     */

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 27, '14 at 7:13p
activeMar 27, '14 at 7:13p
posts1
users1
websitehive.apache.org

1 user in discussion

Ehans: 1 post

People

Translate

site design / logo © 2021 Grokbase