HBASE-19051 Add new split algorithm for num string
[hbase.git] / bin / hbase-config.cmd
blob5c1f1860f5399597352880b1deb2e7e44c5f40b8
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 included in all the hbase scripts with source command
20 @rem should not be executable directly
21 @rem also should not be passed any arguments, since we need original $*
22 @rem Modelled after $HADOOP_HOME/bin/hadoop-env.sh.
24 @rem Make sure java environment is set
25 @rem
27 if "%HBASE_BIN_PATH:~-1%" == "\" (
28 set HBASE_BIN_PATH=%HBASE_BIN_PATH:~0,-1%
31 if "%1" == "--config" (
32 set HBASE_CONF_DIR=%2
33 shift
34 shift
37 @rem the root of the hbase installation
38 if not defined HBASE_HOME (
39 set HBASE_HOME=%HBASE_BIN_PATH%\..
42 @rem Allow alternate hbase conf dir location.
43 if not defined HBASE_CONF_DIR (
44 set HBASE_CONF_DIR=%HBASE_HOME%\conf
47 @rem List of hbase regions servers.
48 if not defined HBASE_REGIONSERVERS (
49 set HBASE_REGIONSERVERS=%HBASE_CONF_DIR%\regionservers
52 @rem List of hbase secondary masters.
53 if not defined HBASE_BACKUP_MASTERS (
54 set HBASE_BACKUP_MASTERS=%HBASE_CONF_DIR%\backup-masters
57 @rem Source the hbase-env.sh. Will have JAVA_HOME defined.
58 if exist "%HBASE_CONF_DIR%\hbase-env.cmd" (
59 call "%HBASE_CONF_DIR%\hbase-env.cmd"
62 if not defined JAVA_HOME (
63 echo Warning: JAVA_HOME environment variable is not set. Defaulting to c:\apps\java
64 set JAVA_HOME=c:\apps\java
67 if not exist "%JAVA_HOME%\bin\java.exe" (
68 echo Error: JAVA_HOME is incorrectly set or could not find java at the location %JAVA_HOME%\bin\
69 exit /B 2
72 set JAVA="%JAVA_HOME%\bin\java"
74 for %%i in (%0) do (
75 if not defined HBASE_BIN_PATH (
76 set HBASE_BIN_PATH=%%~dpi