hadoop使用Java API 访问hdfs的数据
2017-03-14 本文已影响136人
DayDayUpppppp
使用hadoop dfs的api 来访问访问数据 。
看来一些资料和书,其实代码很简单,就是必须把需要的包,都带上就可以了。另外,要确保hadoop dfs是开启的。


随便起个名字:

在依赖的这里,写好需要的hadoop包


源码的git:
https://github.com/zhaozhengcoder/hadoop/tree/master/dfs