HDFS - Hadoop Distributed File System

55 / 58

Copy File to HDFS

The file created in the previous step is stored in your home folder in Linux console.

We can copy the files using following command. This command will put myfirstfile.txt from current directory from Linux file system into the HDFS home directory:

hadoop fs -copyFromLocal myfirstfile.txt

or

hadoop fs -put myfirstfile.txt
INSTRUCTIONS

Please copy myfirstfile.txt to your home folder in HDFS.



Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...