How to edit txt file inside the HDFS in terminal?

Viewed 3809

Is there any way to modify the txt file inside HDFS directly via terminal? Assume, I have "my_text_file.txt", and I would like to modify it inside HDFS using below command.

$ hdfs dfs -XXXX user/my_text_file.txt

I am interested to know "xxxx" if there exists any. Please note that I don't want to make modification in local and then copy it to HDFS.

3 Answers
Related