Suppose we have a file in out system (locally present) and need to move to HDFS , use the following command.
> hadoop fs -copyFromLocal <source location in local system> <target location in HDFS>
eg : Suppose we have a file "sample.csv" and need to move to FILES directory in HDFS system
> hadoop fs -copyFromLocal sample.csv FILES
Comments
Post a Comment