HBASE-23887 AdaptiveLRU cache (#2934)
[hbase.git] / bin / start-hbase.cmd
blob676a11e6e280ce0336c3d6c6cd240bdb3f1965a4
1 @rem/**
2 @rem * Licensed to the Apache Software Foundation (ASF) under one
3 @rem * or more contributor license agreements. See the NOTICE file
4 @rem * distributed with this work for additional information
5 @rem * regarding copyright ownership. The ASF licenses this file
6 @rem * to you under the Apache License, Version 2.0 (the
7 @rem * "License"); you may not use this file except in compliance
8 @rem * with the License. You may obtain a copy of the License at
9 @rem *
10 @rem * http://www.apache.org/licenses/LICENSE-2.0
11 @rem *
12 @rem * Unless required by applicable law or agreed to in writing, software
13 @rem * distributed under the License is distributed on an "AS IS" BASIS,
14 @rem * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 @rem * See the License for the specific language governing permissions and
16 @rem * limitations under the License.
17 @rem */
19 @rem Modelled after $HADOOP_HOME/bin/start-hbase.sh.
21 @rem Start hadoop hbase daemons.
22 @rem Run this on master node.
23 @echo off
24 set usage="Usage: start-hbase.cmd"
26 setlocal
28 for %%i in (%0) do (
29 if not defined HBASE_BIN_PATH (
30 set HBASE_BIN_PATH=%%~dpi
34 if "%HBASE_BIN_PATH:~-1%" == "\" (
35 set HBASE_BIN_PATH=%HBASE_BIN_PATH:~0,-1%
38 set hbase-config-script=%HBASE_BIN_PATH%\hbase-config.cmd
39 call %hbase-config-script%
41 set distModeCommand=call %HBASE_BIN_PATH%\hbase.cmd org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed
42 for /f %%i in ('%distModeCommand%') do set distMode=%%i
44 if "%distMode%"=="false" (
45 start "HBase Distribution" %HBASE_BIN_PATH%\hbase.cmd master start
46 ) else (
47 if "%distMode%"=="true" (
48 @echo This is not implemented yet. Stay tuned.
49 @rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "${HBASE_CONF_DIR}" start zookeeper
50 @rem call %HBASE_BIN_PATH%\hbase-daemon.cmd --config "${HBASE_CONF_DIR}" start master
52 @rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "%HBASE_CONF_DIR%" --hosts "%HBASE_REGIONSERVERS%" start regionserver
53 @rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "%HBASE_CONF_DIR%" --hosts "%HBASE_BACKUP_MASTERS%" start master-backup
54 ) else (
55 echo ERROR: Could not determine the startup mode.
59 @rem -------------- End of main script --------------
60 endlocal
61 goto :eof