0 votes
in Hadoop by
How do you copy data from the local system onto HDFS?

1 Answer

0 votes
by

 How do you copy data from the local system onto HDFS? 

The following command will copy data from the local file system onto HDFS:

hadoop fs –copyFromLocal [source] [destination]

Example: hadoop fs –copyFromLocal /tmp/data.csv /user/test/data.csv

In the above syntax, the source is the local path and destination is the HDFS path. Copy from the local system using a -f option (flag option), which allows you to write the same file or a new file to HDFS. 

Related questions

0 votes
asked Nov 13, 2019 in Ansible by rajeshsharma
+3 votes
asked Nov 25, 2022 in Hadoop by john ganales
...