hadoop的一些命令技巧
2024-08-29 18:48:26
hadoop fs -cat <hdfspath>
hadoop fs -cat <hdfspath>|more #more参数可是分页显示文件内容
echo abcd | hadoop fs -put - <hdfsfile> #将打印到屏幕的内容保存到hdfs
hadoop fs -cat <hdfsfile>
ls <localpath> | hadoop fs -put <hdfsfile> #将本地目录下的文件名保存到hdfs文件中
hadoop fs -copyToLocal <hdfsfile> #复制hdfs文件或者目录到当前目录
hadoop fs -put <localfile> <hdfsfile> #将本地文件复制到hdfs,相同名字的文件将被覆盖
hadoop fs -get <hdfsfile> <lcoalfile> #将hdfs文件复制到本地,相同名字的文件将被覆盖
最新文章
- PowerDesigner通过SQL语句生成PDM文件
- maven打包问题
- Java 7 Concurrency Cookbook 翻译 序言
- 第五章第二例题关于Vector(LRJ)
- 「2013-9-5」Configure WingIDE for better display of East Asian Glyphs
- XStream 快速转换xml
- FZU 2105 Digits Count(线段树)
- Linux 的使用基础---Shell程序设计
- [ES6] Array.findIndex()
- Android新浪微博客户端(二)——添加多个账户及认证
- Struts2--ModelDriven接收参数
- Docker笔记四:Elasticsearch实例部署
- Linux Simple Systemd Service Guide
- leetcode — merge-intervals
- centos 6.9修改系统默认字符集
- Android全面屏适配
- 【java】类的继承
- docker 常用操作
- deepin安装Python3.6和pip
- vue 巧妙的运用sass px 转 rem
热门文章
- python3-打印一个进度条
- javascript字符串 转 驼峰字符
- Python pika, TypeError: exchange_declare() got an unexpected keyword argument &#39;type&#39; 问题修复
- Java50道经典习题-程序47 输入数字打印星号
- org.apache.commons.lang3包中的isEmpty和isBlank
- ubuntu - 14.04,必须会的技能-安装PPA源中的程序,更大范围使用deb格式安装文件!!
- Spring MVC零配置(全注解)(版本5.0.7)
- POI2011 Tree Rotations
- Python之运算符以及基本数据类型的object
- CSS(九)元素隐藏和利弊