Hadoop 文件系统命令行基础详解
作者:SheepCore 时间:2023-08-31 13:57:03
Hadoop 命令行最常用指令篇:
1.ls (list directory)
Usage:hadoop fs -ls [R]
Option: -R => 递归显示
2.mkdir (make directory)
Usage:hadoop fs -mkdir [-p] <paths>
Takes path uri's as argument and creates directories.
Options: -p make parent file => 当给的路径含有不存在的父目录时,递归创建目录
3.put (put local files to hdfs)
Usage:hadoop fs -put <localsrc> URI
4.get(make directory)
Usage:hadoop fs -get URI<localsrc>
4.rm(remove directory or file)
Usage:hadoop fs -rm [-f] [-r |-R] URI [URI ...]
Options:
-f => force 强制删除,不给提示。-r |-R => recursively 递归删除所有目录中的文件。
Warning: hadoop fs -rm "-rf" 不能连在一起写,需要一个个给出:hadoop fs -rm-r -f
4.mv(move directory or file)
Usage:hadoop fs -mv URI [URI ...] <dest>
Feature:支持多个目录或文件移动
总结
以上所述是小编给大家介绍的Hadoop 文件系统命令行基础,网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
来源:https://www.cnblogs.com/sheepcore/archive/2019/07/19/11212507.html
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
mybatis如何实现的数据库排序
解决mybatis 数据库date 与 java中Date类型映射问题
python 文件读写和数据清洗
javascript forEach通用循环遍历方法
Yii1.0 不同页面多个验证码的使用实现
vue初尝试--项目结构(推荐)
![](https://img.aspxhome.com/file/2023/5/126515_0s.jpg)
mysql设置更改root密码、mysql服务器的连接、mysql常用命令的图解
![](https://img.aspxhome.com/file/2023/3/124503_0s.png)
selenium+python实现自动登录脚本
django学习之ajax post传参的2种格式实例
![](https://img.aspxhome.com/file/2023/8/72228_0s.png)
switchery按钮的使用方法
![](https://img.aspxhome.com/file/2023/3/132593_0s.png)
Python基于paramunittest模块实现excl参数化
pandas DataFrame 赋值的注意事项说明(index)
Python3.5面向对象编程图文与实例详解
![](https://img.aspxhome.com/file/2023/8/88008_0s.png)
MySQL中几种插入和批量语句实例详解
Python内置函数dir详解
python正则表达式用法超详细讲解大全
如何避免asp的SQL的执行效率低
如何利用Image Data Type在主页中显示图形?
MySql使用skip-name-resolve解决外网链接客户端过慢问题
学习createTrackbar的使用方法及步骤
![](https://img.aspxhome.com/file/2023/7/121387_0s.jpg)