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://lszwz.com/article/ijsohp.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款