转自:https://blog.csdn.net/t___z/article/details/78492113

#!/bin/bash

 hive -e "use lbi;show tables;" > hivetables.txt

sleep(2)

cat hivetables.txt |while read eachline
do
     hive -e "show create table $eachline;" >>hivetablesDDL.txt
done

 

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-11-19
  • 2021-12-04
  • 2022-01-28
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案