Useful Commands
List files inside a directory
# hadoop fs -ls /user/hadoop/file1
Upload a file
# hadoop fs -put /local-files/file1.txt /hdfs-path
Upload many files
# hadoop fs -put /local-files /hdfs-path
Download many files
# hadoop fs -get /hdfs-path /local-path
For a complete set of commands and options, refer to the Hadoop documentation:
Go back to: Operations.