Last active
December 23, 2015 17:00
-
-
Save code6/6666279 to your computer and use it in GitHub Desktop.
hive relate stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-hiveconf hive.root.logger=DEBUG,console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment