Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Hbase installation configuration

Shulou Source: shulou.com Published: 2022-06-03 05:23:14 10月03日 Update

Hbase installation

I'm using CentOS-6.5-x86_64 's linux system here.

Hbase uses the hbase-0.99.2-bin.tar.gz version

Vm virtual machine and CRT terminal software are used.

I have pre-installed here.

If the environment such as hadoop-2.6.4,jdk1.7.0_45,zookeeper is not installed, please install it yourself.

I use 3 virtual machines here, mini1,mini2,mini3, the computer is not good, 3 make do with it. If, configured, 7 virtual machines, the best effect, the configuration of ha, the best effect of the simulation of the real environment.

For ha environment configuration, please refer to Hadoop 12-node cluster construction.

Mini1 is both master and slave, and mini2,mini3 is the slave machine.

Installation steps: 1) upload

First make sure that the user is hadoop and use the tool to upload the hbase installation package hbase-0.99.2-bin.tar.gz to / home/hadoop.

2) decompress # confirm to be the Hadoop user, find the uploaded hbase installation package # unzipped software installation directory, my personal habit is to put it under apps $tar-zxvf hbase-0.99.2-bin.tar.gz-C / home/hadoop/apps/# to enter the extracted directory Rename $cd / home/hadoop/apps/$ mv hbase-0.99.2 hbase3) modify the environment variable # switch to root user $su-root$ vi / etc/profile# add: export HBASE_HOME=/home/hadoop/apps/hbaseexport PATH=$PATH:$HBASE_HOME/bin# execute command: $source / etc/profile$ su-hadoop4) modify the configuration file

Modify the three configuration files under the / home/hadoop/apps/hbase/conf folder, hbase-env.sh,hbase-site.xml,regionservers, respectively.

1. Modify hbase-env.sh# first go to the conf directory $cd $HBASE_HOME/conf# to modify the hbase-env.sh $vi hbase-env.sh# jdk installation directory The location of my export JAVA_HOME=/usr/local/jdk1.7.0_45export JAVA_CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar# hadoop configuration file under / usr/local export HBASE_CLASSPATH=/home/hadoop/apps/hbase/conf# is falseexport HBASE_MANAGES_ZK=true2 if you use the stand-alone installation of zookeeper. Modify hbase-env.sh$ vi hbase-env.sh hbase.master # hbasemaster host and port mini1:60000 hbase.master.maxclockskew # time synchronization allowed time difference of 180000 hbase.rootdir hdfs://hadoop-cluster1/hbase#hbase shared directory, persistent hbase data hbase.cluster.distributed # whether distributed operation False is the stand-alone true hbase.zookeeper.quorum#zookeeper address mini1, the location of the snapshot of mini2,mini3 hbase.zookeeper.property.dataDir#zookeeper configuration information / home/hadoop/hbase/tmp/zookeeper 3. Modify regionservers# from the corresponding hostname of the machine $vi regionserversmini1mini2mini35) put the hdfs-site.xml and core-site.xml of hadoop under hbase/conf $cp / home/hadoop/apps/hadoop/etc/hadoop/hdfs-site.xml / home/hadoop/apps/hbase/conf$ cp / home/hadoop/apps/hadoop/etc/hadoop/core-site.xml / home/hadoop/apps/hbase/conf6) and send it to other slave machines $scp-r / home/hadoop/apps/ Hbase hadoop@mini2:/home/hadoop/apps$ scp-r / home/hadoop/apps/hbase hadoop@mini3:/home/hadoop/apps7) start # execute $start-hbase.sh8 in mini1) View

Process: jps

Enter the shell:hbase shell of hbase

Exit the shell:quit of hbase

Page: http://mini1:60010/, I don't know why, I can't open the page, maybe it's incorrect, it doesn't matter if I don't use it very much.

At this point, the hbase installation is complete. If the startup fails, check whether the zookeeper process is working properly and whether the hadoop cluster is started.

Tags: Configuration directory file environment machine user host location effect time software process cluster page three personal information content distributed stand-alone Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL MariaDB Redmi Shulou Tech Info OPPO Reno