Big Data Hadoop

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

 

Related Posts

Table Of Contents

;