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