search
HomeOperation and MaintenanceCentOSDetailed explanation of how to install HBase1.4 on Centos7

The following column centos introductory tutorial will introduce to you how to install HBase1.4 on Centos7. I hope it will be helpful to friends in need!

Preparation

1. The hadoop cluster has been installed. Here we will install hbase1.4 on the basis of Hadoop2.7 installed on Centos7, so it is the same three machines. The plan is as follows:

hostname IP address Deployment planning
node1 172.20 .0.4 Master, RegionServer
node2 172.20.0.5 Backup-Master, RegionServer
node3 172.20.0.6 RegionServer

2. Download the installation package from the official website: hbase-1.4.12 -bin.tar.gz (it is recommended to go to the open source mirror site of Tsinghua University or University of Science and Technology of China).

3. hbase will be deployed in the path/mydata that already exists on three machines. Configure the environment variables:

export HBASE_HOME=/mydata/hbase-1.4.12export PATH=${HBASE_HOME}/bin:$PATH

Configuration

First modify the hbase configuration on node1 and complete. Then uniformly copy it to other nodes to ensure that the configuration content is consistent.

Extract hbase-1.4.12-bin.tar.gz to /mydata/, enter /mydata/hbase-1.4.12/conf, and configure:

<!-- 文件名 hbase-site.xml --><configuration>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://node1:9000/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>node1,node2,node3</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/mydata/data/zookeeper</value>
  </property>
</configuration>
# 文件名 regionserversnode1
node2
node3
# 文件名 backup-masters 该文件需要新建node2
in the hadoop configuration
Configuration item Meaning
hbase.cluster.distributed
Distributed mode
hbase.rootdir
The data storage location of hbase, here is /hbase of hdfs, host:port corresponds to fs.defaultFS
hbase.zookeeper.quorum
All hosts where zookeeper is to be deployed, usually more than three, of course you can deploy it on each one at most
hbase.zookeeper.property.dataDir
Data storage location when zookeeper is running
regionservers
All RegionServers are usually deployed on each DataNode
backup-masters
As a backup Master

Note: The zookeeper here uses the one that comes with hbase. Of course, you can also use the external one, which will not be mentioned here. .

The default log directory is in $HBASE_HOME/logs, and the pid file is in /tmp, which can be modified:

# 文件名 hbase-env.shexport HBASE_LOG_DIR=/mydata/logs/hbase
export HBASE_PID_DIR=/mydata/data/pid

After the configuration is completed, copy the hbase program file to the other two:

node1> scp -r /mydata/hbase-1.4.12/ root@node2:/mydata/node1> scp -r /mydata/hbase-1.4.12/ root@node3:/mydata/

Start

node1> start-hbase.sh
##node2 Use the jps command to verify the process on node3 HMaster, HRegionServer, HQuorumPeer Use the jps command to verify the process on node3HRegionServer, HQuorumPeer
Use jps command to verify the process on node1 HMaster, HRegionServer, HQuorumPeer
Note: HQuorumPeer is the process of zookeeper. Nodes that do not deploy zookeeper do not have it; if an external zookeeper is used, the process name becomes QuorumPeerMain.

Test

You can access the following address through the browser:

Master’s backendhttp://node1 :16010http://node1:16030
RegionServer’s background

http://node2:16030

http://node3:16030

#Access the former and you can see:

Execute below An official example (the following command can be executed on any machine where hbase is deployed):

node> hbase shell
hbase> create 'test', 'cf'
hbase> list 'test'
hbase> describe 'test'
hbase> put 'test', 'row1', 'cf:a', 'value1'
hbase> put 'test', 'row2', 'cf:b', 'value2'
hbase> put 'test', 'row3', 'cf:c', 'value3'
hbase> scan 'test'
hbase> get 'test', 'row1'
You can see the information of this table in the browser: http://node1:16010/table. jsp?name=test.

over

The above is the detailed content of Detailed explanation of how to install HBase1.4 on Centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:cnblogs. If there is any infringement, please contact admin@php.cn delete
CentOS: Examining the Reasons Behind the End of LifeCentOS: Examining the Reasons Behind the End of LifeMay 04, 2025 am 12:12 AM

The reason for the end of CentOS is RedHat's business strategy adjustment, community-business balance and market competition. Specifically manifested as: 1. RedHat accelerates the RHEL development cycle through CentOSStream and attracts more users to participate in the RHEL ecosystem. 2. RedHat needs to find a balance between supporting open source communities and promoting commercial products, and CentOSStream can better convert community contributions into RHEL improvements. 3. Faced with fierce competition in the Linux market, RedHat needs new strategies to maintain its leading position in the enterprise-level market.

The Reasons for CentOS's Shutdown: A Detailed AnalysisThe Reasons for CentOS's Shutdown: A Detailed AnalysisMay 03, 2025 am 12:05 AM

RedHat shut down CentOS8.x and launches CentOSStream because it hopes to provide a platform closer to the RHEL development cycle through the latter. 1. CentOSStream, as the upstream development platform of RHEL, adopts a rolling release mode. 2. This transformation aims to enable the community to get exposure to new RHEL features earlier and provide feedback to accelerate the RHEL development cycle. 3. Users need to adapt to changing systems and reevaluate system requirements and migration strategies.

CentOS: The Advantages of Using This Linux DistroCentOS: The Advantages of Using This Linux DistroMay 02, 2025 am 12:10 AM

CentOS stands out among enterprise Linux distributions because of its stability, security, community support and enterprise application advantages. 1. Stability: The update cycle is long and the software package has been strictly tested. 2. Security: Inherit the security features of RHEL, update and announce in a timely manner. 3. Community support: a huge community and detailed documentation to respond to problems quickly. 4. Enterprise applications: Support container technologies such as Docker, suitable for modern application deployment.

Comparing CentOS Replacements: Features and BenefitsComparing CentOS Replacements: Features and BenefitsMay 01, 2025 am 12:05 AM

Alternatives to CentOS include AlmaLinux, RockyLinux, and OracleLinux. 1.AlmaLinux provides RHEL compatibility and community-driven development. 2. RockyLinux emphasizes enterprise-level support and long-term maintenance. 3. OracleLinux provides Oracle-specific optimization and support. These alternatives have similar stability and compatibility to CentOS, and are suitable for users with different needs.

CentOS vs. Other Linux Distributions: A ComparisonCentOS vs. Other Linux Distributions: A ComparisonApr 30, 2025 am 12:07 AM

CentOS is suitable for enterprise and server environments due to its stability and long life cycle. 1.CentOS provides up to 10 years of support, suitable for scenarios that require stable operation. 2.Ubuntu is suitable for environments that require quick updates and user-friendly. 3.Debian is suitable for developers who need pure and free software. 4.Fedora is suitable for users who like to try the latest technologies.

CentOS's Departure: Choosing the Right AlternativeCentOS's Departure: Choosing the Right AlternativeApr 29, 2025 am 12:04 AM

Alternatives to CentOS include AlmaLinux, RockyLinux, and OracleLinux. 1.AlmaLinux and RockyLinux rebuild RHEL 1:1, providing high stability and compatibility, suitable for enterprise environments. 2. OracleLinux provides high performance through UEK, suitable for users who are familiar with the Oracle technology stack. 3. When choosing, stability, community support and package management should be considered.

CentOS's Replacement: Exploring the New OptionsCentOS's Replacement: Exploring the New OptionsApr 28, 2025 am 12:17 AM

CentOS alternatives include RockyLinux, AlmaLinux, and OracleLinux. 1. RockyLinux and AlmaLinux provide stable distributions compatible with RHEL, suitable for users who need long-term support. 2. CentOSStream is suitable for users who focus on new features and development cycles. 3. OracleLinux is suitable for users who need enterprise-level support.

Replacing CentOS: Identifying Suitable ReplacementsReplacing CentOS: Identifying Suitable ReplacementsApr 27, 2025 am 12:04 AM

CentOS needs alternatives because CentOSStream no longer provides long-term support. Alternative options include: 1. RockyLinux, which provides 10 years of life cycle support, suitable for users who need stability. 2.AlmaLinux also provides 10 years of support and has strong community support. 3. OracleLinux, provides RHEL-compatible version, and flexible life cycle management.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.