How to edit txt file inside the HDFS in terminal?
Currently as explained by @BruceWayne, its not possible. It would be very difficult to edit the files stored in hdfs
because all the files are distributed
in hdfs
and it would be very difficult to edit in the terminal using hdfs
commands. Currently these are supported as terminal commands.
You can edit them by locating the data location of each datanode
in the cluster.But that would be troublesome.
Moreover you can install HUE. With HUE
you can edit the files in hdfs
using web UI
.