Hadoop Hive概念学习系列之hive里如何显示当前数据库及传参(十九)


 

  这个小知识点,看似简单,用处极大。

 

  

 

 

 

     $ hive --hiveconf hive.cli.print.current.db=true

 

 

 

 

 

   $ hive --hiveconf hive.cli.print.header=true

 

 

 

 

 

 hive参数的使用

 hive > create table t5(name string,${system:user.name}  string);

 

 

 

 

 

 

  

 

     create table t6(name string, ${env:HOSTNAME}  string ,  ${env:USER}  string)

   更多,后续再补


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM