如果只想append操作:

1. echo "<Text to append>" | hdfs dfs -appendToFile - yourHdfsPath/test.txt 

如果想modify操作:

1 hdfs dfs -get yourHdfsPath/test.txt
2 vi test.txt #or use any other tool and modify it
3 hdfs dfs -put -f test.txt yourHdfsPath/test.txt

 

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-12-15
  • 2021-11-18
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 2021-05-22
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案