打赏

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)

   更多,后续再补

posted @ 2016-12-01 09:40  大数据和AI躺过的坑  阅读(3198)  评论(0)    收藏  举报