Hypertable MasterFailover

测试集群:

role:source, "hyt1"

role:master, "hyt1","hyt3"

role:hyperspace, "hyt2"

role:slave,  "hyt3","hyt4"

role:localhost, "hyt1"

 

1. 配置多Master:

hyt1, hyt3

hyt1 为原始Master

hyt3 为之前RangeServer 之一

2. hyt3 安装Monitoring System

 

ruby_install_rvm (网络)

curl -L get.rvm.io | bash -s stable

curl -L https://get.rvm.io | bash -s stable--ruby

rvm install ruby-1.9.3-p327

 

参考以下说明

Monitoring System | Hypertable - Big Data. Big Performance

安装Monitoring System.

    sudo geminstall sinatra rack thin json titleize

sudo yum install rrdtool

 

3. hyt1 启动集群

cap start

保证正常启动,OK。

 

4. 查看Monitor

4.1 Masterhyt1:

 

4.2 Master hyt3:

 

 

 

 

5. hyt1 创建测试表

5.1 Master hyt1

[root@hyt1 bin]# ./ht shell

 

Welcome to the hypertable command interpreter.

For information about Hypertable, visit http://hypertable.com

 

Type 'help' for a list of commands, or 'help shell' for a

list of shell meta commands.

 

hypertable> use hyt;

 

  Elapsed time:  0.04 s

hypertable> get listing;

 

  Elapsed time:  0.00 s

hypertable>create table tab_cdr(x1,x2,x3,f1,index x1,index x2,index x3,ACCESS GROUPa(x1,x2,x3),ACCESS GROUP b(f1));

 

  Elapsed time:  1.86 s

hypertable> create table tab_cdr_event(et,f1,index et);

 

  Elapsed time:  1.50 s

hypertable> get listing;

^tab_cdr

^tab_cdr_event

tab_cdr

tab_cdr_event

 

 Elapsed time:  0.03 s

 

 

5.2 Master hyt3

 

[root@hyt3 bin]# ./ht shell

 

Welcome to the hypertable command interpreter.

For information about Hypertable, visit http://hypertable.com

 

Type 'help' for a list of commands, or 'help shell' for a

list of shell meta commands.

 

hypertable> use hyt;

 

  Elapsed time:  0.00 s

hypertable> get listing;

^tab_cdr

^tab_cdr_event

tab_cdr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Shinobi_Jack

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值