Hbase Cluster Setup Guide
来源:互联网 发布:淘宝刺客电玩怎么样 编辑:程序博客网 时间:2024/04/30 09:31
Hbase Cluster Setup Guide
Environment:
1.
2.
3.
4.
5.
Preparation
1.
Set the number of the files all at the same time in memory. Default is 1024.
a.
hduser – nofile 32768
b.
session required pam_limits.so
2.
$ sudo apt-get update
$ sudo apt-get install maven
3.
a)
$ tar –zxvf hbase-0.94.8-security.tar.gz
$ sudo mv hbase-0.94.8-security /usr/local/hbase94
$ sudo chmod –R hduser:hduser /usr/local/hbase94
b)
c)
d)
4.
$ sudo atp-get install ntp
$ sudo service ntp stop
$ sudo ntpdate –u ntp.ubuntu.com
$ sudo service ntp start
5.
Configure the property for hadoop in hdfs-site.xml
configuration
Standalone HBASE
Don’t use HDFS to store the database files. It uses local file system.
$ tar –zxvf hbase-0.94.8.tar.gz
$sudo mv hbase-0.94.8 /usr/local/ hbase-0.94.8
$sudo chmod –R hduser:hduser /usr/local/ hbase-0.94.8
Make directory for hbase.root and hbase.zookeeper.property.dataDir
$sudo mkdir /home/hbase
$sudo mkdir /home/zookeeper
$sudo chmod –R hduser:hduser /home/hbase
$sudo chmod –R hduser:hduser /home/zookeeper
Edit /usr/local/ hbase-0.94.8/conf/hbase-site.xml. Set hbase.root and hbase.zookeeper.property.dataDir
Pseudo-distributed
A pseudo-distributed mode is simply a distributed mode run on a single host. Use this configuration testing and prototyping on HBase. Do not use this configuration for production nor for evaluating HBase performance. Here will not provide the way to configure it.
Fully-distributed
1 regionserver
$ tar –zxvf hbase-0.94.8.tar.gz
$sudo mv hbase-0.94.8 /usr/local/hbase-0.94.8
$sudo chmod –R hduser:hduser /usr/local/hbase-0.94.84
$ /user/local/hadoop/bin/hdfs dfs –mkdir hdfs://master:8888/hbase
a.
u
u
u
b.
Restart hadoop to source it.
$ cd /usr/local/hbase-0.94.8
$ vi conf/hbase-site.xml
$ vi conf/regionservers
master
export JAVA_HOME = /usr/local/jdk1.7
2 regionservers
Master:
$ vi conf/regionservers
master
slave
Slave
1.
$ tar –zxvf hbase-0.94.8.tar.gz
$sudo mv hbase-0.94.8 /usr/local/hbase-0.94.8
$sudo chmod –R hduser:hduser /usr/local/hbase-0.94.84
2.
$ vi conf/regionserver
3.
Start/Stop hbase
1.
$ bin/start-hbase.sh
$ jps
3 services will be added in java process:
2.
$ bin/stop-hbase.sh
Practice Hbase
1.
$ bin/hbase shell
2.
hbase(main) :001:0> create ‘test’,’cf’
3.
hbase(main) :001:0> put 'test', 'row1', 'cf:a', 'value1'
hbase(main) :001:0> put 'test', 'row2', 'cf:b', 'value2'
hbase(main) :001:0> put 'test', 'row3', 'cf:c', 'value3'
4.
hbase(main) :001:0>
ROW
row1
row2
row3
3 row(s) in 0.0590 seconds
5.
hbase(main):012:0> disable 'test'
0 row(s) in 1.0930 seconds
hbase(main):013:0> drop 'test'
0 row(s) in 0.0770 seconds
- Hbase Cluster Setup Guide
- Hadoop V2.0.3 Cluster Setup Guide
- MySQL Cluster Server Setup
- MySQL Cluster Server Setup
- hadoop- cluster setup
- setup cluster -- configure hadoop
- Solr Cluster Setup
- Linux Cluster setup
- xvid setup guide
- ELK setup guide
- Splunk setup guide
- MySQL Cluster: Two webserver setup
- HBase Cluster replication
- MySQL Cluster (NDB) Installation Guide
- [转载]SDL Setup Guide 1.1
- HBase: The Definitive Guide
- HBase Clinet API Guide
- Weblogic 10.3 insallment and Cluster setup - 1
- FFmpeg解码H264及swscale缩放详解
- Visual Studio 2013开发 mini-filter driver step by step (4) - 获取文件名
- 渗透测试业务--603250813
- dota中的人生智慧
- 相对路径和绝对路径的区分
- Hbase Cluster Setup Guide
- STL array方法总结(一)Iterators(20)
- contentSize、contentInset和contentOffset区别
- 学习笔记3——存储,内存
- 题目1035:找出直系亲属
- 从数组中选择第k大的数
- Set static IP for Linux
- Java的JDBC事务详解
- 国内联网公司安全应急响应站点一览表