HBASE-12560 [WINDOWS] Append the classpath from Hadoop to HBase classpath in bin/hbase.cmd
This commit is contained in:
parent
7a3e8b55f8
commit
9701845ea7
|
@ -161,6 +161,11 @@ set PATH=%PATH%;"%HADOOP_HOME%\bin"
|
||||||
set HADOOP_IN_PATH=hadoop.cmd
|
set HADOOP_IN_PATH=hadoop.cmd
|
||||||
|
|
||||||
if exist "%HADOOP_HOME%\bin\%HADOOP_IN_PATH%" (
|
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 HADOOP_CLASSPATH=%CLASSPATH%
|
||||||
|
|
||||||
set hadoopJLPCommand=call %HADOOP_IN_PATH% org.apache.hadoop.hbase.util.GetJavaProperty java.library.path 2^>nul
|
set hadoopJLPCommand=call %HADOOP_IN_PATH% org.apache.hadoop.hbase.util.GetJavaProperty java.library.path 2^>nul
|
||||||
|
|
Loading…
Reference in New Issue