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

Centos6.8 stand-alone installation of HBase

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

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.

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

Database

Wechat

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

12
Report