Hbase 1.0.1 Standalone version installation

Source: Internet
Author: User

1. First download the http://mirror.bit.edu.cn/apache/hbase/hbase-1.0.1/hbase-1.0.1-bin.tar.gz installation package from the official website

2. Unzip to the installation directory, TAR-XVF hbase-1.0.1-bin.tar.gz

3. Modify Conf/hbase-site.xml

<configuration><name>hbase.rootdir</ name><property>  <!--The 8020 port here is the same as the HDFs port in Core-site.xml in Hadoop-->     <value>hdfs://192.168.233.11:8020/hbase</value>  </property>  < property>    <name>hbase.cluster.distributed</name>     <value>true</value>  </property>  <property>      <!--using local zookeeper-->    <name>hbase.zookeeper.quorum</name>     <value>192.168.233.11</value>  </property>  < Property>    <name>hbase.tmp.dir</name>    <value >/usr/hbase-1.0.1/tmp</value>  </property></configuration> 

3. Modify Hbase-env.sh, add

Export Java_home=/usr/java/jdk1.7.0_75/export Hbase_classpath=/usr/hbase-1.0.1/confexport HBASE_MANAGES_ZK=true

Note: A distributed run of HBase relies on a zookeeper cluster. All nodes and clients must be able to access the zookeeper. By default, HBase manages a zookeep cluster. This cluster will start with the start of hbase. Of course, you can also manage a zookeeper cluster yourself, but you need to configure HBase. You need to change the HBASE_MANAGES_ZK inside the conf/hbase-env.sh to switch. This value is true by default, and the function is to enable hbase to start at the same time zookeeper

4. Start Hdoop first, and then start HBase

>CD hbase-1.0.1/bin/>./start-hbase.sh>./stop-hbase.sh

5.JPS View related processes, should have the following process (if an error, go to the logs directory to find the appropriate error), pay special attention to hmaster whether to start successfully

13764 HRegionServer4539 NameNode19860 Jps18087 HQuorumPeer18298 HRegionServer4996 ResourceManager18177 HMaster4839 SecondaryNameNode4650 DataNode5108 NodeManager

6. Start the HBase shell (preferably configuration path)

HBase Shell
[Email protected]:/usr/hbase-1.0.1/bin> ./hbase shell2015-05-11 06:02:27,925 warn   [main] conf. configuration: bad conf file: element not <property>2015-05-11  06:02:30,720 warn  [main] conf. Configuration: bad conf file: element not <property>slf4j: class  path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/usr/hbase-1.0.1/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/ Impl/staticloggerbinder.class]slf4j: found binding in [jar:file:/usr/hadoop-2.6.0/share/ hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/staticloggerbinder.class]slf4j: see http:/ /www.slf4j.org/codes.html#multiple_bindings for an explanation. Slf4j: actual binding is of type [org.slf4j.impl.log4jloggerfactory]2015-05-11  06:02:31,268 Warn  [main] util. nativecodeloader: unable to load native-hadoop library for your  platform... using builtin-java classes where applicable2015-05-11 06:02:31,594  warn  [main] conf. configuration: bad conf file: element not <property>2015-05-11  06:02:31,804 warn  [main] conf. configuration: bad conf file: element not <property>2015-05-11  06:02:32,217 warn  [main] conf. configuration: bad conf file: element not <property>2015-05-11  06:02:32,438 warn  [main] conf. configuration: bad conf file: element not <property>2015-05-11  06:02:33,300 warn  [main] conf. Configuration: bad conf file: element not <property>hbase&nbSp shell; enter  ' help<return> '  for list of supported commands. type  "Exit<return>"  to leave the HBase ShellVersion 1.0.1,  R66a93c09df3b12ff7b86c39bc8475c60e15af82d, fri apr 17 22:14:06 pdt 2015hbase ( Main):001:0> listtable                                                                                                                                                                           0  row (s)  in 0.4370 seconds=> []hbase (main):002:0>

Started successfully.

Hbase 1.0.1 Standalone version installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.