HDFS Commands for Reading and Writing files in HDFS
Jun 25, 2020
Make sure to subscribe to our newsletter and be the first to know the news.
Jun 25, 2020
Make sure to subscribe to our newsletter and be the first to know the news.
This blog post we are going to learn commands to read and write files which are in HDFS. Lets go through this video to understand the whole process
Commands for reading and writing a file in HDFS
Read and Writing in HDFS File | |
---|---|
hadoop fs -cat /user/codewithz/log.txt | Reads all the content of file log.txt in hdfs |
hadoop fs -appendToFile /home/ubuntu/abc.txt /user/codewithz/log.txt | Appends the content of abc.txt from local file to the log.txt file in HDFS |