摘要: 1、下载Hadoop的压缩包 tar.gz https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/stable/ 在eclipse中新建项目中,建lib文件夹,把要用的jar包拷贝进来,jar包在解压好的 hadoop-2.9.1/sha 阅读全文
posted @ 2018-10-04 17:56 超凡- 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1、查看hdfs文件目录 hadoop fs -ls / 2、上传文件 hadoop fs -put 文件路径 目标路径 在浏览器查看:namenodeIP:50070 3、下载文件 hadoop fs -get 文件路径 保存路径 4、设置副本数量 -setrep 阅读全文
posted @ 2018-10-04 17:16 超凡- 阅读(185) 评论(0) 推荐(0) 编辑