Created
June 19, 2020 15:25
-
-
Save ragingbal/f07726ce951fa1a0119713028d5b97d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$hive -e 'show tables in <dbname>' | tee tables.txt | |
Then create a bash script (describe_tables.sh) to loop over each table in this list: | |
while read line | |
do | |
echo "$line" | |
eval "hive -e 'describe <dbname>.$line'" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment