HBase分布式部署

來源:互聯網
上載者:User

前提

hadoop叢集搭建成功,這裡使用的是Hadoop1.0.3+HBase0.94.1

配置HBase

1.修改conf/hbase-env.sh,添加jdk支援 

  export JAVA_HOME=/home/hadoop/jdk1.6.0_39

2.修改conf/hbase-site.xml

<property> 

<name>hbase.rootdir</name> 

<value>hdfs://master:9000/hbase</value> 

</property> 

<property> 

<name>hbase.cluster.distributed</name> 

<value>true</value> 

</property> 

<property> 

<name>hbase.master</name> 

<value>hdfs://master:9000</value> 

</property> 

<property> 

<name>hbase.zookeeper.quorum</name> 

<value>master,slave1,slave2</value> 

</property> 

<property> 

<name>hbase.zookeeper.property.dataDir</name> 

<value>/home/hadoop/data/zookeeper</value> 

</property>

3.修改conf/regionservers

  slave1

  slave2 

 添加Hadoop配置的所有datanode結點)

4.scp到所有子節點

5.啟動HBase

   $ ./bin/start-hbase.sh

HBase基本操作

1.HBase內建的web介面

  http://master:60010/

2.shell用戶端HBase shell命令)

  $ ./bin/hbase shell

 

本文出自 “李小懶的鍵盤之路” 部落格,請務必保留此出處http://libangsen.blog.51cto.com/3599182/1135723

相關文章

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.