Skip to content

필사 모드: How to Install HBase Fully Distributed Mode on Ubuntu 22.04

English
0%
정확도 0%
💡 왼쪽 원문을 읽으면서 오른쪽에 따라 써보세요. Tab 키로 힌트를 받을 수 있습니다.
원문 렌더가 준비되기 전까지 텍스트 가이드로 표시합니다.

Overview

Let's learn how to install HBase in fully distributed mode.

HBase can use Hadoop File System, S3, or Local File System as its storage. The most widely used storage is HDFS. Since HBase has a dependency on Zookeeper, you need to install Hadoop and Zookeeper before setting up HBase. HBase includes Zookeeper internally, so you can use the bundled binary, but I chose to install it separately.

Installing Hadoop 3.3.2

You can find the Hadoop version compatible with your HBase version at [hadoop hbase version](https://hbase.apache.org/book.html#hadoop). Since we will be using HBase 2.5.3, we will install Hadoop 3.3.2.

Go to the [hadoop 3.3.2 archive](https://archive.apache.org/dist/hadoop/common/hadoop-3.3.2/) site.

Hadoop Binary Download

Right-click on the hadoop-3.3.2.tar.gz link as shown below and click "Copy Link Address" to copy the download URL.

Run the following commands on all servers to install Hadoop.

wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.2/hadoop-3.3.2.tar.gz

tar -zxvf hadoop-3.3.2.tar.gz

sudo cp -r hadoop-3.3.2 /usr/local/hadoop

For the subsequent installation process, refer to [Hadoop 3.4 Install on Ubuntu Non Secure](https://www.youngju.dev/blog/202212/hadoop-basic-install).

The modified configs are as follows.

127.0.0.1 localhost

255.255.255.255 broadcasthost

::1 localhost

192.168.219.121 latte01

192.168.219.122 latte02

192.168.219.123 latte03

192.168.219.124 latte04

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export HDFS_NAMENODE_USER=root

export HDFS_SECONDARYNAMENODE_USER=root

export HDFS_DATANODE_USER=root

export YARN_RESOURCEMANAGER_USER=root

export YARN_NODEMANAGER_USER=root

latte02

latte03

latte04

Starting Hadoop

start-dfs.sh

Installing Zookeeper

For the installation method, refer to the [Zookeeper installation guide post](https://eyeballs.tistory.com/106).

The number of milliseconds of each tick

tickTime=2000

The number of ticks that the initial

synchronization phase can take

initLimit=10

The number of ticks that can pass between

sending a request and getting an acknowledgement

syncLimit=5

the directory where the snapshot is stored.

do not use /tmp for storage, /tmp here is just

example sakes.

dataDir=/var/zookeeper

the port at which the clients will connect

clientPort=2181

the maximum number of client connections.

increase this if you need to handle more clients

#maxClientCnxns=60

#

Be sure to read the maintenance section of the

administrator guide before turning on autopurge.

#

http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance

#

The number of snapshots to retain in dataDir

#autopurge.snapRetainCount=3

Purge task interval in hours

Set to "0" to disable auto purge feature

#autopurge.purgeInterval=1

server.1=latte01:2888:3888

server.2=latte02:2888:3888

server.3=latte03:2888:3888

Create a myid file in `/var/zookeeper` on servers 1, 2, and 3, and enter a unique integer between 1 and 255 inside the file.

Then start the Zookeeper server with the following command.

zkServer.sh start

Installing HBase

Go to the [hbase download page](https://hbase.apache.org/downloads.html) and navigate to the binary link for version 2.5.3.

Right-click on `https://dlcdn.apache.org/hbase/2.5.3/hbase-2.5.3-bin.tar.gz` and copy the link address to your clipboard.

Download the HBase binary tar file and extract it on all servers using the following commands.

wget https://www.apache.org/dyn/closer.lua/hbase/2.5.3/hbase-2.5.3-bin.tar.gz

tar -zxvf hbase-2.5.3-bin.tar.gz

sudo cp -r hbase-2.5.3 /usr/local/hbase

Modifying Config

Add the following two lines to `hbase-env.sh`.

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export HBASE_CLASSPATH=${HADOOP_CONF_DIR}

export HBASE_PID_DIR=/var/hadoop/pids

export HBASE_MANAGES_ZK=false

Modify `hbase-site.xml` as follows.

latte02

latte03

latte04

Starting HBase

start-hbase.sh

Verifying HBase is Running

Access `http://latte01:16010` to check the HBase status.

Quiz

Q1: What is the main topic covered in "How to Install HBase Fully Distributed Mode on Ubuntu

22.04"?

Learn how to install HBase in fully distributed mode on Ubuntu 22.04.

You can find the Hadoop version compatible with your HBase version at hadoop hbase version. Since

we will be using HBase 2.5.3, we will install Hadoop 3.3.2. Go to the hadoop 3.3.2 archive site.

For the installation method, refer to the Zookeeper installation guide post. Create a myid file in

/var/zookeeper on servers 1, 2, and 3, and enter a unique integer between 1 and 255 inside the

file. Then start the Zookeeper server with the following command.

Go to the hbase download page and navigate to the binary link for version 2.5.3. Right-click on

https://dlcdn.apache.org/hbase/2.5.3/hbase-2.5.3-bin.tar.gz and copy the link address to your

clipboard.

현재 단락 (1/68)

Let's learn how to install HBase in fully distributed mode.

작성 글자: 0원문 글자: 4,429작성 단락: 0/68