Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure Hbase under Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to install and configure Hbase under Linux. It is very detailed and has a certain reference value. Friends who are interested must read it!

Installation and configuration of Hbase under Linux

First install Hadoop

Linux Hadoop 2.7.3 installation set-up

1. Download the Hbase installation package

Click to go to the Hbase official website page to download

Http://hbase.apache.org/downloads.html

two。 Installation

Upload the downloaded Hbase installation package to the specified directory of the server (unlimited, depending on the actual situation) and extract it.

3. Configure JAVA_HOME environment variables

Find the conf/hbase-env.sh file in the hbase installation directory, uncomment the JAVA_HOME line in the file, and change it to the actual path of the native jdk.

Export JAVA_HOME=/wys/jdk1.8.0_311/ # because hbase comes with zk. Here true uses export HBASE_MANAGES_ZK=true.

4. (optional) configure hbase-site.xml

Modify the conf/hbase-site.xml file

Hbase.rootdir file:/hadoop/hbase-2.4.7/data hbase.zookeeper.property.dataDir / hadoop/hbase-2.4.7/zkdata hbase.zookeeper.quorum VM-16-8-centos hbase.zookeeper.property.clientPort 2181 zookeeper.znode.parent / hbase hbase.cluster.distributed true hbase.unsafe.stream.capability.enforce false hbase. Master.maxclockskew 120000 hbase.master.ipc.address0.0.0.0hbase.regionserver.ipc.address0.0.0.0

Note: the following controls whether the port is accessible to the external network

Hbase.master.ipc.address0.0.0.0hbase.regionserver.ipc.address0.0.0.0 0 0.0.0.0: the beginning is 127.0.0.1 40648 which can be accessed by the public network.

5. Start Hbase

Execute the. / bin/start-hbase.sh command from the Hbase installation directory to start Hbase.

In stand-alone mode, a HMaster and ZooKeeper background process will be generated after Hbase starts successfully, and the browser can browse the monitoring page of Hbase by accessing http://localhost:16010.

Execute. / bin/hbase shell in the Hbase installation directory after successful startup to enter the Hbase command line interface.

List can view all tables

Phoenix installation and configuration 1. Download the Hbase installation package

Click to go to the Phoenix official website page to download

two。 Installation

Upload the downloaded Phoenix installation package to the specified directory of the server (unlimited, depending on the actual situation) and extract it.

3. Configuration

Copy phoenix- [version]-server.jar under the Phoenix installation directory to the lib directory of Hbase, and restart Hbase.

4. Running

Execute. / bin/sqlline.py 127.0.0.1 Hbase 2181 to connect to Hbase in the Phoenix installation directory, and execute the! tables command to see several system tables that are automatically created.

* * Note: * * it may be slow to connect for the first time, because several system tables will be created, as shown in the figure above.

Other hosts in the public network or internal network connect to Phoenix

Operate hbase through DBeaver connection Phoenix

The above is all the contents of the article "how to install and configure Hbase under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report