Installation of HBASE
Installation of HBASE
We are going to make a standalone setup of HBase in our machine which requires
Java JDK 1.8 - Download from this link JAVA JDK. Install and set JAVA_HOME in
environment variable.
HBase - Apache HBase can be downloaded from this link
https://archive.apache.org/dist/hbase/2.4.9/
https://www.apache.org/dyn/closer.lua/hbase/2.5.5/hbase-2.5.5-bin.tar.gz
HBase Installation Steps:
Step 1:
Unzip the downloaded Hbase and place it in some common path, say C:\hbase\hbase-1.4.9
Step 2:
Create a folders as shown below inside root folder for HBase data and zookeeper
-> C:\hbase\hbase-1.4.9\hbase
->C:\hbase\hbase-1.4.9\zookeeper
In bin folder
Set java home in hbase-config file
set JAVA_HOME=C:\Progra~1\Java\jdk-1.8
Step 3:
Open C:\hbase\hbase-1.4.9/bin/hbase.cmd in notepad++. Search for below given lines and
remove %HEAP_SETTINGS% from that line.
set java_arguments=%HEAP_SETTINGS% %HBASE_OPTS% -classpath "%CLASSPATH%"
%CLASS% %hbase-command-arguments%
Step 4:
Open C:/Document/hbase-1.4.9/conf/hbase-env.cmd n notepad++. Add the below lines to the
file after the comment session
set JAVA_HOME=%JAVA_HOME%
set HBASE_CLASSPATH=%HBASE_HOME%\lib\client-facing-thirdparty\*
set HBASE_HEAPSIZE=8000
set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps"
%HBASE_GC_OPTS%
set HBASE_USE_GC_LOGFILE=true
set HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false"
"-Dcom.sun.management.jmxremote.authenticate=false"
set HBASE_MASTER_OPTS=%HBASE_JMX_BASE%
"-Dcom.sun.management.jmxremote.port=10101"
set HBASE_REGIONSERVER_OPTS=%HBASE_JMX_BASE%
"-Dcom.sun.management.jmxremote.port=10102"
set HBASE_THRIFT_OPTS=%HBASE_JMX_BASE%
"-Dcom.sun.management.jmxremote.port=10103"
set HBASE_ZOOKEEPER_OPTS=%HBASE_JMX_BASE%
-Dcom.sun.management.jmxremote.port=10104"
set HBASE_REGIONSERVERS=%HBASE_HOME%\conf\regionservers
set HBASE_LOG_DIR=%HBASE_HOME%\logs
set HBASE_IDENT_STRING=%USERNAME%
set HBASE_MANAGES_ZK=true
Step 5:
Open C:\hbase\hbase-1.4.9/conf/hbase-site.xml notepad++. Add the below lines inside
<configuration> tag.
<property>
<name>hbase.rootdir</name>
<value>file:///C:\hbase\hbase-1.4.9\hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>C:\hbase\hbase-1.4.9\zookeeper</value>
</property>
<property>
<name> hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
Step 6:
Setup the Environment variable for HBASE_HOME and add bin to the path variable as shown in
the below image.
HBASE_HOME C:\hbase\hbase-1.4.9
—-Check commands
hbase version
hbase shell
create 'demo1'
list