Home > Database > Mysql Tutorial > body text

HBase分布式部署

WBOY
Release: 2016-06-07 17:41:30
Original
844 people have browsed it

前提hadoop集群搭建成功,这里使用的是Hadoop1.0.3+HBase0.94.1配置HBase1.修改conf/hbase-env.sh,添加jdk支持exportJAVA_HOME=/home/hadoop/jdk1.6.0_392.修改

前提

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

 

hbase.rootdir 

hdfs://master:9000/hbase 

 

 

hbase.cluster.distributed 

true 

 

 

hbase.master 

hdfs://master:9000 

 

 

hbase.zookeeper.quorum 

master,slave1,slave2 

 

 

hbase.zookeeper.property.dataDir 

/home/hadoop/data/zookeeper 

3.修改conf/regionservers

  slave1

  slave2 

 (添加Hadoop配置的所有datanode结点)

4.scp到所有子节点

5.启动HBase

   $ ./bin/start-hbase.sh

HBase基本操作

1.HBase自带的web界面

  :60010/

2.shell客户端(HBase shell命令)

  $ ./bin/hbase shell

 

本文出自 “李小懒的键盘之路” 博客,香港服务器租用,请务必保留此出处

,网站空间
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!