2017-12-08 14:30
@JFinal 搞定,谢谢啦,手册学习不认真,回去补课
2017-12-07 14:46
@lishixing 我直接获取Controller中getRequest().getInputStream()读取流,将流传给Hdsf方法upload(InputStream in, String hdfsPath)就可以了,方法中使用OutputStream out = fs.create(new Path(hdfsPath)); IOUtils.copyBytes(in, out, 4096, true);将流写到Hdfs中即可