HBASE-13589 [WINDOWS] hbase.cmd script is broken
This commit is contained in:
parent
cc5a0f361a
commit
b970599b42
|
@ -88,8 +88,8 @@ if "%hbase-command%"=="" (
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
|
|
||||||
set JAVA_HEAP_MAX=""
|
set JAVA_HEAP_MAX=
|
||||||
set JAVA_OFFHEAP_MAX=""
|
set JAVA_OFFHEAP_MAX=
|
||||||
|
|
||||||
rem check envvars which might override default args
|
rem check envvars which might override default args
|
||||||
if defined HBASE_HEAPSIZE (
|
if defined HBASE_HEAPSIZE (
|
||||||
|
@ -118,8 +118,8 @@ if "%in_dev_env%"=="true" (
|
||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%cached_classpath_filename%" (
|
if not exist "%cached_classpath_filename%" (
|
||||||
echo "As this is a development environment, we need %cached_classpath_filename% to be generated from maven (command: mvn install -DskipTests)"
|
echo "As this is a development environment, we need %cached_classpath_filename% to be generated from maven (command: mvn install -DskipTests)"
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
|
|
||||||
for /f "delims=" %%i in ('type "%cached_classpath_filename%"') do set CLASSPATH=%CLASSPATH%;%%i
|
for /f "delims=" %%i in ('type "%cached_classpath_filename%"') do set CLASSPATH=%CLASSPATH%;%%i
|
||||||
|
@ -251,7 +251,7 @@ if defined service_entry (
|
||||||
set HBASE_LOG_PREFIX=hbase-%hbase-command%-%COMPUTERNAME%
|
set HBASE_LOG_PREFIX=hbase-%hbase-command%-%COMPUTERNAME%
|
||||||
set HBASE_LOGFILE=!HBASE_LOG_PREFIX!.log
|
set HBASE_LOGFILE=!HBASE_LOG_PREFIX!.log
|
||||||
if not defined HBASE_ROOT_LOGGER (
|
if not defined HBASE_ROOT_LOGGER (
|
||||||
set HBASE_ROOT_LOGGER=INFO,DRFA
|
set HBASE_ROOT_LOGGER=INFO,DRFA
|
||||||
)
|
)
|
||||||
set HBASE_SECURITY_LOGGER=INFO,DRFAS
|
set HBASE_SECURITY_LOGGER=INFO,DRFAS
|
||||||
set loggc=!HBASE_LOG_DIR!\!HBASE_LOG_PREFIX!.gc
|
set loggc=!HBASE_LOG_DIR!\!HBASE_LOG_PREFIX!.gc
|
||||||
|
@ -294,7 +294,7 @@ if not defined HBASE_SECURITY_LOGGER (
|
||||||
)
|
)
|
||||||
set HBASE_OPTS=%HBASE_OPTS% -Dhbase.security.logger="%HBASE_SECURITY_LOGGER%"
|
set HBASE_OPTS=%HBASE_OPTS% -Dhbase.security.logger="%HBASE_SECURITY_LOGGER%"
|
||||||
|
|
||||||
set HEAP_SETTINGS="%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%"
|
set HEAP_SETTINGS=%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%
|
||||||
set java_arguments=%HEAP_SETTINGS% %HBASE_OPTS% -classpath "%CLASSPATH%" %CLASS% %hbase-command-arguments%
|
set java_arguments=%HEAP_SETTINGS% %HBASE_OPTS% -classpath "%CLASSPATH%" %CLASS% %hbase-command-arguments%
|
||||||
|
|
||||||
if defined service_entry (
|
if defined service_entry (
|
||||||
|
|
Loading…
Reference in New Issue