0% found this document useful (0 votes)
40 views6 pages

Installation of HBASE

ok

Uploaded by

adityasah895
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views6 pages

Installation of HBASE

ok

Uploaded by

adityasah895
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Pre-Requisite:

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

For 1.4.9 version: — compatible with windows 11


https://archive.apache.org/dist/hbase/1.4.9/

For 2.4.9 version

https://archive.apache.org/dist/hbase/2.4.9/

For 2.5.5 version

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

Add hbase bin path into PATH


We are done with the Setup for HBase on Windows 11 and to verify the setup follow the video
and also try creating a table inside hbase shell. Hope you made a complete standalone setup of
HBase in windows machine successfully.
— Start the hive
start-hbase.cmd

—-Check commands

hbase version

hbase shell

create 'demo1'

list

You might also like