![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hbase
文章平均质量分 76
hanjibing1990
这个作者很懒,什么都没留下…
展开
-
Hbase常用Shell命令
转载自 http://www.cnblogs.com/nexiyi/p/hbase_shell.html进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户转载 2015-11-27 14:51:09 · 518 阅读 · 0 评论 -
HBase Rowkey的散列与预分区设计
转载自http://www.cnblogs.com/bdifn/p/3801737.html HBase中,表会被划分为1...n个Region,被托管在RegionServer中。Region二个重要的属性:StartKey与EndKey表示这个Region维护的rowKey范围,当我们要读/写数据时,如果rowKey落在某个start-end key范围内,那么就会定位到目标reg转载 2015-11-27 14:59:02 · 371 阅读 · 0 评论 -
Hbase查询结果分页(PageFilter)
public static JSONObject divicePage(String tableName, String startRow, String endRow, String lastRowKey, int num) throws IOException { Filter filter = new PageFilter(num);//每页展示条数 byte[] lastR原创 2016-06-03 14:31:19 · 10072 阅读 · 1 评论 -
Hbase Java客户端示例
1.Hbase获取连接:public class HbaseConnection { private static Configuration config; private static HConnection hconn; private static final Logger LOGGER = LoggerFactory .getLogger(HbaseConnectio原创 2015-11-30 17:02:40 · 404 阅读 · 0 评论