创建文件 :hdfs dfs -touchz /aaa/aa.txt 在文件内写入内容:echo "<Text to append>" | hdfs dfs -appendToFile - /1/1.txt