Hadoop commands

List of command for hadoop

List of files and directories
hadoop fs -ls /

List of files under user
hadoop fs -ls /user

Put file to hadoop
hadoop fs -put text.txt /user/training/text.txt

View file content
hadoop fs -cat /user/training/text.txt

Remove file from hadoop file system
hadoop fs -rmr /user/training/text.txt

Leave a Reply

Your email address will not be published. Required fields are marked *