windows访问Hbase数据库的配置

来源:互联网 发布:做一个淘宝网站多少钱 编辑:程序博客网 时间:2024/06/14 19:28

 

1、hbase-site.xml

 

2、hosts文件要定义YOYO07,YOYO08,YOYO10

3、使用

HBaseConfiguration config = new HBaseConfiguration();
HBaseAdmin admin = new HBaseAdmin(config);

HTable table = new HTable(config, "scores");

直接访问

 

原创粉丝点击