Hive 批量导出建表语句
#!/bin/bashrm -rf tablesDDL.txtfor hiveTabName in $(hive -e "show tables 'rcd*';")dohive -e "show create table $hiveTabName" >>tablesDDL.txtecho -e "---------------------------- $hiveTabName table structure generate finished! -------------------------------\n\n">>tablesDDL.txtdone
