无参数实例化Configuration对象以及addResource无法加载core-site.xml中的内容

core-site.xml中配置的fs.default.name是hdfs://localhost:9000。但是这里读取出来的是本地文件系统。原因暂不知?有谁知道?

 

posted @ 2016-03-06 18:51  Birding  阅读(1200)  评论(0编辑  收藏  举报