RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
hadoop中hdfs优缺点是什么

这篇文章将为大家详细讲解有关hadoop中hdfs优缺点是什么,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

成都创新互联主要从事做网站、成都网站制作、网页设计、企业做网站、公司建网站等业务。立足成都服务清江浦,十多年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

hadoop中hdfs优缺点是什么

// 下载
FileSystem fs = FileSystem.get(new URI("hdfs://xxxx:9000"),new Configuration());
InputStream in = fs.open(new Path("/xxx"));//HDFS路径
OutputStream out = ..
IOUtils.copyBytes(in,out,buffersize,close);
// 上传
InputStream in = ..
FileSystem fs = FileSystem.get(new URI("hdfs://xxxx:9000"),new Configuration());
OutputStream out = fs.create(new Path("..."));//hdfs路径
IOUtils.copyBytes(in,out,buffersize,close);
// 问题:Permission Denied -- 权限错误
// FileSystem fs = FileSystem.get(new URI("hdfs://xxxx:9000"),new Configuration(),"root");
// 删除文件、文件夹(如果要删除的文件夹中有内容,必须选择递归删除)
boolean fs.delete(new Path("目标hdfs路径"),是否递归删除);
// 创建文件夹
boolean fs.mkdirs(new Path(".."));

关于“hadoop中hdfs优缺点是什么”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


分享标题:hadoop中hdfs优缺点是什么
网页URL:http://cqwzjz.cn/article/ijsohp.html