fstimers
#!/bin/sh
hive -e "use china_prod;show tables \"t_tag_political*\";" | while read line
do
echo "drop table $line;">>temptables.txt
done

hive -e "use china_prod;show tables \"tag*\";" | while read line
do
echo "drop table $line;">>temptables.txt
done

tables=`cat temptables.txt`
echo $tables
hive -e "use china_prod;$tables"
rm temptables.txt

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-07-21
  • 2021-06-01
  • 2022-02-21
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2021-06-04
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案