hive数据迁移 导表

来源:互联网 发布:apache tomcat 7.0 7.0 编辑:程序博客网 时间:2024/06/07 03:39

!/bin/bash

hive -e “use ana_crmpicture;show tables;” > tables.txt
sleep 3
cat tables.txt |while read eachline
do
hive -e “show create table ana_crmpicture.$eachline” >>tablesDDL.txt
done

原创粉丝点击