All posts tagged: ls

How to view files in HDFS (hadoop fs -ls)

Leave a comment
Hadoop

Introduction The hadoop fs -ls command allows you to view the files and directories in your HDFS filesystem, much as the ls command works on Linux / OS X / *nix. Default Home Directory in HDFS A user’s home directory in HDFS is located at /user/userName. For example, my home directory is /user/akbar. List the Files in Your Home Directory hadoop fs -ls defaults to /user/userName, so you can leave the path blank to view […]