Get the App
SLTechnology News&Howtos  ›  Database  › 

Centos6.8 stand-alone installation of HBase

Shulou Source: shulou.com Published: 2022-06-01 14:14:36 10月01日 Update

Hadoop ecosystem

Introduction to HBase

-HBase-HadoopDatabase, a distributed database with high reliability, high performance, column-oriented, scalable, real-time read and write

-using HadoopHDFS as its file storage system, using HadoopMapReduce to deal with massive data in HBase, and using Zookeeper as its distributed collaborative service

(1) prerequisites for installation

This installation is installed on Ali CVM, and the java environment has been configured. Both hadoop and zookeeper have been installed and started successfully.

(2) download hbase-1.1.3-bin.tar.gz, upload and decompress

Enter the conf directory

1. Configure JAVA_HOME in hbase-env.sh

two。 Configure hbase-site.xml as follows

Hbase.rootdir

File:///opt/hbase / / hbase root directory

Hbase.zookeeper.property.dataDir

/ opt/zookeeper / / zookeeper root directory, to start

(3) start hbase

Enter the bin/ directory

[root@tongbin] #. / start-hbase.sh. / stop-hbase.sh

Startingmaster, logging to / home/tong/hbase-1.1.3/bin/../logs/hbase-tong-master-tong.out

[root@tongbin] # jps

2442SecondaryNameNode

2148NameNode

2284 Murray-process information unavailable

9112Jps

1074Application

7868QuorumPeerMain

2241DataNode

8848 HMaster

You can see that the startup is successful.

(4) Test the shell of hbase

[root@tong bin] #. / hbase shell

SLF4J: Classpath contains multiple SLF4J bindings.

SLF4J: Foundbinding in [jar:file:/home/tong/hbase-1.1.3/lib/slf4j-log4j12-1.7.5.jarr _ r _ r _ r]

SLF4J: Foundbinding in [jar:file:/home/tong/hadoop-2.5.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jarr _ r _ r _ r]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actualbinding is of type [org.slf4j.impl.Log4jLoggerFactory]

HBase Shell; enter'help' for list of supported commands.

Type "exit" to leave the HBase Shell

Version 1.1.3,r72bc50f5fafeb105b2139e42bbee3d61ca724989, Sat Jan 16 18:29:00 PST 2016

Hbase (main): 001purl 0 >

Hbase (main): 002purl 0 > list

Hbase (main): 002purl 0 > status

1 servers, 0dead, 2.0000 average load

Hbase (main): 003VR 0 > version

Extension: allowing browsers to access hbase

# vim hbase-site.xml add the following

Hbase.master.info.port

60010 / / Port, optional

Hbase.master.info.bindAddress

Ip

# vim/etc/sysconfig/iptables / / Let 60010 pass

# serviceiptables restart / / restart the Nic

You can access it in the browser, and the browser accesses http://ip:60010/

At this point, the stand-alone installation of hbase is over.

Tags: Browser browsing success distributed data root directory directory system service configuration stand-alone content premise reliability real-time database file is on server condition Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Linux Redmi Huawei