Skip to content

Instantly share code, notes, and snippets.

@code6
Last active December 23, 2015 17:00
Show Gist options
  • Save code6/6666279 to your computer and use it in GitHub Desktop.
Save code6/6666279 to your computer and use it in GitHub Desktop.
hive relate stuff
#http://mapredit.blogspot.com/2013/05/get-all-extended-hive-tables-with.html
for file in $(hive -e "show table extended like \`*\`" | grep location: | awk 'BEGIN { FS = ":" };{printf("hdfs:%s:%s\n",$3,$4)}'); do hdfs dfs -du -h $file; done;
-hiveconf hive.root.logger=DEBUG,console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment