hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-12560 [WINDOWS] Append the classpath from Hadoop to HBase classpath in bin/hbase.cmd
Date Sat, 22 Nov 2014 06:08:07 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 7a3e8b55f -> 9701845ea


HBASE-12560 [WINDOWS] Append the classpath from Hadoop to HBase classpath in bin/hbase.cmd


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9701845e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9701845e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9701845e

Branch: refs/heads/branch-1
Commit: 9701845ea7a2fd0e95a2f3c1e88a64041b8942d9
Parents: 7a3e8b5
Author: Enis Soztutar <enis@apache.org>
Authored: Fri Nov 21 22:07:10 2014 -0800
Committer: Enis Soztutar <enis@apache.org>
Committed: Fri Nov 21 22:07:54 2014 -0800

----------------------------------------------------------------------
 bin/hbase.cmd | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9701845e/bin/hbase.cmd
----------------------------------------------------------------------
diff --git a/bin/hbase.cmd b/bin/hbase.cmd
index 1b2227b..42eb7b5 100644
--- a/bin/hbase.cmd
+++ b/bin/hbase.cmd
@@ -161,6 +161,11 @@ set PATH=%PATH%;"%HADOOP_HOME%\bin"
 set HADOOP_IN_PATH=hadoop.cmd
 
 if exist "%HADOOP_HOME%\bin\%HADOOP_IN_PATH%" (
+  set hadoopCpCommand=call %HADOOP_IN_PATH% classpath 2^>nul
+  for /f "eol= delims=" %%i in ('!hadoopCpCommand!') do set CLASSPATH_FROM_HADOOP=%%i
+  if defined CLASSPATH_FROM_HADOOP (
+    set CLASSPATH=%CLASSPATH%;!CLASSPATH_FROM_HADOOP!
+  )
   set HADOOP_CLASSPATH=%CLASSPATH%
 
   set hadoopJLPCommand=call %HADOOP_IN_PATH% org.apache.hadoop.hbase.util.GetJavaProperty
java.library.path 2^>nul


Mime
View raw message