HDFS shell 常用命令

创建多级目录(-p):
hadoop fs -mkdir -p /test/a/b
 
展示目录:
hadoop fs -ls /
 
递归展示:
hadoop fs -ls -R /
 
从HDFS上下载文件到本地:
hadoop fs -get /test/a/b/h.txt
hadoop fs -copyToLocal  /test/a/b/h.txt
 
从本地上传文件到HDFS:
hadoop fs -copyFromLocal hello.txt /test/a/b/h.txt
hadoop fs -put hello.txt  /test/a/b/h.txt
posted @   咔咔皮卡丘  阅读(3)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Blazor Hybrid适配到HarmonyOS系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 分享4款.NET开源、免费、实用的商城系统
· 解决跨域问题的这6种方案,真香!
· 一套基于 Material Design 规范实现的 Blazor 和 Razor 通用组件库
点击右上角即可分享
微信分享提示