
hadoop
doingSthing
这个作者很懒,什么都没留下…
展开
-
hadoop连接异常解决:ConnectionRefused Exception
介绍一下环境。hadoop部署至云服务器中,core-site.xml配置为:<property> <name>fs.default.name</name> <value>hdfs://storage-dfs:9001</value> </property> 然后本地用hsfsAPI远程...原创 2018-11-30 09:50:04 · 5920 阅读 · 1 评论 -
解决hdfs报错:filesystem closed
FileSystem fileSystem =FileSystem.get(uri, new Configuration);final FSDataInputStream in = fileSystem.open(path);IOUtils.copyBytes(in, out, 1024, true);程序中使用此方法进行获取文件系统,然后使用此方法 IOUtils.copyByt...原创 2019-03-06 15:13:47 · 5977 阅读 · 1 评论