Skip to content

Instantly share code, notes, and snippets.

@addingama
Last active August 7, 2019 07:07
Show Gist options
  • Save addingama/36808f945f4616a34384c3cadd5457cf to your computer and use it in GitHub Desktop.
Save addingama/36808f945f4616a34384c3cadd5457cf to your computer and use it in GitHub Desktop.
Hadoop HDFS Notes

Hadoop Notes

HDFS

Commands

  • Check hdfs directory content on root directory /

      hdfs dfs -ls /
    
  • Create a new folder, you need to provide a full path for the directory

      hdfs dfs -mkdir /hadoop
    

    If you want to create directory inside directory, provide full path with -p parameter. -p will auto create missing directory.

      hdfs dfs -mkdir -p /custom/directory
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment