Skip to content

Instantly share code, notes, and snippets.

@anuragkapur
Last active November 24, 2015 11:59
Show Gist options
  • Save anuragkapur/756e77e6e9c8b2bab0b0 to your computer and use it in GitHub Desktop.
Save anuragkapur/756e77e6e9c8b2bab0b0 to your computer and use it in GitHub Desktop.
Hadoop CLI Cheatsheet

Hadoop CLI Cheatsheet

List the entire HDFS

$ hadoop fs -ls -R /

List a dir

$ hadoop fs -ls /user/oxclo/output

Cat a file in the file system

$ hadoop fs -cat /user/oxclo/wind/SF37.csv

Make dir

$ hadoop fs -mkdir /user/oxclo/books
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment