执行hive -e 命令并且获取对应的select查询出来的值及其对应的scheam字段

需要在执行语句中前部添加 set hive.cli.print.header=true; 这个设置,如下语句: hive -e "set hive.cli.print.header=true;use default;select * from students"

这样最后的结果中会返回查询出来的字段值及其对应的scheam

 

源码参考地址:https://github.com/xjh713/hive-get-scheam.git

 

相关文章:

  • 2021-12-18
  • 2021-04-17
  • 2021-08-20
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-07-25
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2022-01-13
  • 2021-09-25
相关资源
相似解决方案