题目内容
下列程序A,B分别实现了HDFS的什么功能 ______ ______ (A:上传文件;B:下载文件;C:追加文件;D:删除文件)public class HDFSUtil { public void A(String str1, String str2){InputStream stream1=new FileInputStream(str1)OutputStream stream2=HDFS.append(new Path(str2));IOUtils.copyBytes(stream1, stream2, conf);}public void B(String str1, String str2){InputStream stream1=new BufferedInputStream(new FileInputStream(str1));OutputStream stream2=HDFS.create(new Path(str2));IOUtils.copyBytes(stream1, stream2, conf);}}
查看答案
搜索结果不匹配?点我反馈
更多问题