hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sur...@apache.org
Subject svn commit: r1409265 - in /hadoop/common/branches/branch-1-win: CHANGES.branch-1-win.txt bin/hadoop.cmd
Date Wed, 14 Nov 2012 17:29:33 GMT
Author: suresh
Date: Wed Nov 14 17:29:33 2012
New Revision: 1409265

URL: http://svn.apache.org/viewvc?rev=1409265&view=rev
Log:
HADOOP-9026. Hadoop.cmd fails to initialize if user's %path% variable has parenthesis. Contributed
by Ivan Mitic.

Modified:
    hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
    hadoop/common/branches/branch-1-win/bin/hadoop.cmd

Modified: hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt?rev=1409265&r1=1409264&r2=1409265&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt (original)
+++ hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt Wed Nov 14 17:29:33 2012
@@ -211,3 +211,6 @@ Branch-hadoop-1-win - unreleased
 
     HADOOP-9006. Winutils should keep Administrators privileges intact.
     (Chuan Liu via suresh)
+
+    HADOOP-9026. Hadoop.cmd fails to initialize if user's %path% variable has
+    parenthesis. (Ivan Mitic via suresh)

Modified: hadoop/common/branches/branch-1-win/bin/hadoop.cmd
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/bin/hadoop.cmd?rev=1409265&r1=1409264&r2=1409265&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/bin/hadoop.cmd (original)
+++ hadoop/common/branches/branch-1-win/bin/hadoop.cmd Wed Nov 14 17:29:33 2012
@@ -143,10 +143,15 @@ call :updatepath %HADOOP_BIN_PATH%
 
 :updatepath
   set path_to_add=%*
-  set current_path_comparable=%path:(x86)=%
+  set current_path_comparable=%path%
   set current_path_comparable=%current_path_comparable: =_%
-  set path_to_add_comparable=%path_to_add:(x86)=%
+  set current_path_comparable=%current_path_comparable:(=_%
+  set current_path_comparable=%current_path_comparable:)=_%
+  set path_to_add_comparable=%path_to_add%
   set path_to_add_comparable=%path_to_add_comparable: =_%
+  set path_to_add_comparable=%path_to_add_comparable:(=_%
+  set path_to_add_comparable=%path_to_add_comparable:)=_%
+
   for %%i in ( %current_path_comparable% ) do (
     if /i "%%i" == "%path_to_add_comparable%" (
       set path_to_add_exist=true



Mime
View raw message