Skip to content

Instantly share code, notes, and snippets.

@zdepablo
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdepablo/1d2f21926c486474d2df to your computer and use it in GitHub Desktop.
Save zdepablo/1d2f21926c486474d2df to your computer and use it in GitHub Desktop.
Quick Receipts for Hadoop Filesystem
# Reference: http://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/FileSystemShell.html
# Show disk usage in human format
hadoop fs -du -s -h /user/hive/warehouse/da_cdepablo*
# Show permissions
hadoop fs -getfacl /user/hive/warehouse/da_cdepablo*
# Change permissions
hadoop fs -setfacl -R -m other::rwx /user/hive/warehouse/da_cdepablo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment