您当前的位置: 首页 >  段智华 hadoop

HADOOP TopN 开发

段智华 发布时间:2016-02-15 20:33:31 ,浏览量:3

数据文件,取第三列价格 取TOPn

 

[root@master IMFdatatest]#hadoop dfs -cat /library/TopN1.txt
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

16/02/15 06:10:39 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
1,9819,100,121
2,8918,2000,111
3,2813,1234,22
4,9100,10,1101
5,3210,490,111
6,1298,28,1211
7,1010,281,90
8,1818,9000,20

 

 

 

[root@master IMFdatatest]#hadoop dfs -cat /library/TopN2.txt
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

16/02/15 06:10:47 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
10,3333,10,100
11,9321,1000,293
12,3881,701,20

关注
打赏
查看更多评论

段智华

暂无认证

  • 3浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录