如果只想append操作:
. echo "<Text to append>" | hdfs dfs -appendToFile - yourHdfsPath/test.txt
如果想modify操作:
hdfs dfs -get yourHdfsPath/test.txt
vi test.txt #or use any other tool and modify it
hdfs dfs -put -f test.txt yourHdfsPath/test.txt
2024-03-12 16:03:56
如果只想append操作:
. echo "<Text to append>" | hdfs dfs -appendToFile - yourHdfsPath/test.txt
如果想modify操作:
hdfs dfs -get yourHdfsPath/test.txt
vi test.txt #or use any other tool and modify it
hdfs dfs -put -f test.txt yourHdfsPath/test.txt
下一篇:C#实现环形队列