hbase web console simplehbaseviewer

[url]https://github.com/zhang-xzhi/simplehbaseviewer[/url]
[url]https://github.com/zhang-xzhi/simplehbaseviewer/wiki/_pages[/url]

simplehbaseviewer是基于simplehbase的web操作界面.

目前提供以下功能:

htable插入数据,指定时间戳。

htable查询数据,SQL-Like,可以指定maxversion,时间戳范围,limit分页查询。

htable删除数据。

自定义rowkey生成函数,方便查询。 例子: 有一个rowkey的设计如下: 月账单rowkey设计如下: md5(userId)前4位userId反转账单周期反转 自定义一个rowkey生成函数billCategoryRowKey,配置在simplehbaseviewer中,可以使用如下方式查询。

select * from billCategory rowkey is billCategoryRowKey ("2088123456781234_20140401")


query console:
可以对htable进行数据put,scan, delete操作。

example:
比如

     insert into billCategory  ( userId ) values ( "2088123456781234" ) rowkey is billCategoryRowKey ("2088123456781234_20140401") 

insert into MyRecordV05 ( name,age ) values ( "allen", "30" ) rowkey is intkey ("0")

insert into MyRecordV05 ( fatname,age ) values ( "allenfat", "30" ) rowkey is intkey ("0")

insert into MyRecordV05 ( name ) values ( null ) rowkey is intkey ("0")



select * from billCategory startkey is billCategoryRowKey ("2088123456781234_20140401")

select * from MyRecordV05 startkey is intkey ("0") , endkey is intkey ("100") maxversion 10 startTS is "2014-01-01" , endTS is "2100-01-01" limit 10 , 20

select * from MyRecordV05 startkey is intkey ("0") startTS is "2014-01-01" limit 10 , 20

select * from MyRecordV05 startkey is intkey ("0")

select * from MyRecordV05 rowkey is intkey ("0")


delete * from MyRecordV05 startkey is intkey ("0")



[img]http://dl2.iteye.com/upload/attachment/0094/8041/c0319209-da3f-3bcb-90cc-ee0a333da2d9.jpg[/img]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值