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
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 | in the hadoop configuration 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
Use jps command to verify the process on node1 | HMaster, HRegionServer, HQuorumPeer |
HMaster, HRegionServer, HQuorumPeer | |
HRegionServer, HQuorumPeer |
http://node1 :16010 | |
RegionServer’s background | http://node1:16030http://node2:16030http://node3:16030 |
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!

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.

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 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.

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 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.

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 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.

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.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

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
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
