9月22日学习日志
hdfs的一些shell命令。
1.–appendToFile :追加一个文件(不在HDFS中)到已经存在的文件末尾
hdfs dfs -appendToFile ./hello.txt /hello.txt
2.-cat :显示文件内容
hdfs dfs -cat /hadoop-daemon.sh
3.-tail:显示一个文件的末尾
hdfs dfs -tail /weblog/access_log.1
4.-text:以字符形式打印一个文件的内容
hdfs dfs -text /weblog/access_log.1
5.-chgrp 、-chmod、-chown:linux文件系统中的用法一样,修改文件所属权限
hdfs dfs -chmod 666 /hello.txt

浙公网安备 33010602011771号