#!/bin/bash 
     hive -S -e "use 数据库名;show tables;" >tables.txt
    cat tables.txt | while read eachline
    do
     hive -S -e "use 数据库名;show create table ${eachline};" >> tablesDDL.hql
    done

 

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-07-02
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-06-09
  • 2022-01-05
相关资源
相似解决方案