hadoop学习参考资料

Hbase  测试工程:

http://192.168.3.221:5000/test/data?webId=10017406

 

 

hbase  表结构分为 : rowkey、列簇、时间戳、列名、列值

其中 列簇与列名 组合在一起,才是一个hbase中 完整的列名

 

 

(1)

table =(HTable) conn.getTable(TableName.valueOf(tableName));

 

// rowkey查找

Get get = newGet(Bytes.toBytes(rowkey));

// 按列族查找

get.addFamily(Bytes.toBytes(columnFamily));

// 查找所有版本

get.setMaxVersions(3);

 

Result dbResult = table.get(get);

 

 

 

(2)

table =(HTable) conn.getTable(TableName.valueOf(tableName));

 

Scan scan = new Scan();

                    

RowFilter filter = newRowFilter(CompareFilter.CompareOp.EQUAL,

              newBinaryComparator(Bytes.toBytes(rowkey)));

          

// rowkey查找

scan.setFilter(filter);

// 按列族查找

scan.addFamily(Bytes.toBytes(columnFamily));

scan.addColumn(Bytes.toBytes(columnFamily),Bytes.toBytes("request"));

// 查找所有版本

scan.setMaxVersions();

 

ResultScannerresultScanner = table.getScanner(scan);

 


* [SpringData](http://projects.spring.io/spring-data/)

* [Spring for ApacheHadoop](http://projects.spring.io/spring-hadoop/)

* [Spring HadoopSamples](https://github.com/spring-projects/spring-hadoop-samples)

*[java 获取hbase数据springdatahadoop --hbasetemplate](http://blog.youkuaiyun.com/linlinv3/article/details/42737113)

 

 

 

Hbase 是 列存储:

行式数据库与列式数据库的对比

http://www.cnblogs.com/sunShineJing/p/5512932.html

 

 

 

http://blog.fens.me/series-hadoop-family/

 

http://blog.fens.me/hadoop-mapreduce-log-kpi/

 

http://www.cnblogs.com/nexiyi/p/hbase_shell.html

 

http://blog.youkuaiyun.com/wulantian/article/details/41011297

 

http://www.cnblogs.com/nexiyi/p/hbase_shell.html

 

http://www.css88.com/archives/4643

 

 

http://blog.youkuaiyun.com/codestinity/article/details/6981278

 

http://baike.baidu.com/link?url=IABCH3iOqOyMgHdGU3Bl6m-C7i8nAFxhfSNDO8V6qb55FzNOefqj06I7czr_vNunuuUNMEj3_5yTt-m5fXcneK

 

 

https://my.oschina.net/firstBlooded/blog/596197

 

http://blog.chinaunix.net/uid-25723371-id-4976190.html

 

http://blog.youkuaiyun.com/hugengyong/article/details/38148373

 

http://www.cnblogs.com/zhenjing/p/hbase_example.html

 

http://blog.youkuaiyun.com/moxiaomomo/article/details/13434091

 

http://blog.youkuaiyun.com/wulantian/article/details/41011297

 

http://blog.youkuaiyun.com/u010967382/article/details/37653177

 

http://blog.youkuaiyun.com/zwx19921215/article/details/19896519

 

http://www.linuxidc.com/Linux/2014-12/111061.htm

 

http://www.cnblogs.com/justinzhang/p/4261851.html

 

http://blog.youkuaiyun.com/lanwenbing/article/details/40783335

 

http://www.zhihu.com/question/21226255

 

http://zhidao.baidu.com/link?url=wZexV6H5s2NWBoMjulIvVf4_XTZTaG0dijztdBc0dIy_9f_nSFIpH1m8gewSwumRiug1Ylgq3MsTliSpQpu9g6GBrqdC8rFD0g_UL6sr1RK

 

http://www.jdon.com/dl/best/spring4new.html

 

http://www.tuicool.com/articles/7bamYrB

 

http://blog.jobbole.com/53736/

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值