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

HBase installation configuration

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

1. Download the hbase installation package

Http://www.apache.org/dyn/closer.cgi/hbase/

2. Put the hbase-1.0.1.1-bin.tar.gz in the folder of your choice, such as / root/software, and then extract it. The Shell command is as follows:

Tar zxvf hbase-1.0.1.1-bin.tar.gz

3. Enter the decompressed hbase-1.0.1.1

Cd hbase-1.0.1.1

4. Configuration file

1) hbase-env.sh

Uncomment the configuration JDK and modify it as follows (my JDK installation path):

# The java implementation to use. Java 1.7 + required.

Export JAVA_HOME=/usr/java/jdk1.7.0_45

2) hbase-site.xml

The modifications are as follows:

Hbase.rootdir

Hdfs://10.118.46.22:9000/hbase

Hbase.cluster.distributed

True

Hbase.zookeeper.quorum

10.118.46.22

Dfs.replication

three

5. Start hbase

[root@HBMS-DKXD-DEV hbase-1.0.1.1] # bin/start-hbase.sh

Check to see if the startup is successful

Jps to see if there are any of the following

7758 HRegionServer

7632 HMaster

7572 HQuorumPeer

6. Hbase shell command

[root@HBMS-DKXD-DEV hbase-1.0.1.1] # bin/hbase shell

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/root/sherry/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.jarbank]

SLF4J: Found binding in [jar:file:/root/sherry/hadoop-2.6.0/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: Actual binding 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.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015

Hbase (main): 001purl 0 >

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

Wechat

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

12
Report