HBase (3) – Build full-distributed

HBase set up–Fully-distributed

1, instructions for building methods

 By default, HBase runs in standalone mode. Both standalone mode and pseudo-distributed mode are provided for the purposes of small-scale testing. For a production environment, distributed mode is advised. In distributed mode, multiple instances of HBase daemons run on multiple servers in the cluster.

2, building steps

1. Configure the hosts files of all nodes in the cluster to complete

2 、Turn off the firewalls of all nodes in the cluster

3、Set the time of all nodes in the cluster to be consistent

yum install ntpdate
ntpdate ntp1.aliyun.com< /pre>

4. Set all nodes to log in without key

ssh-keygen
ssh-copy-id -i /root/.ssh/id_rsa.pub node01(node Name)

5. Unzip the hbase installation package

tar xzvf hbase-2.0.5-bin.tar.gz -C /opt/bigdata
cd hbase-2.0. 5/

6. Configure HBase environment variables in the /etc/profile file

export HBASE_HOME=/opt/bigdata/hbase-2.0.5
Set $HBASE_HOME Set to the PATH path

7, enter the /opt/bigdata/hbase-2.0.5/conf directory, add JAVA_HOME to the hbase-env.sh file

Set JAVA Environment variables
JAV A_HOME=/usr/java/jdk1.8.0_181-amd64
Set whether to use your own zookeeper instance
HBASE_MANAGES_ZK=false

8, enter /opt/bigdata/hbase-2.0 In the .5/conf directory, add hbase-related attributes in the hbase-site.xml file

  hbase.rootdir  hdfs://mycluster/hbase   hbase.cluster.distributed true   hbase. zookeeper.quorum node02,node03,node04 

9. Modify the regionservers file and set which nodes the regionserver is distributed to

node02
node03
node04

10. If you need to configure the high availability of the Master, you need to create a backup-masters file in the conf directory and add the following content:< /p>

node04

11. Copy the hdfs-site.xml file to the conf directory

cp /opt/bigdate/hbase-2.6.5/etc/hadoop/ hdfs-site.xml /opt/bigdata/hbase-2.0.5/conf

12. Run the hbase shell command in any directory and enter the hbase command line to perform related operations.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4397 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.