Hive set 命令使用
转载来源
1 2 3
   | 作者:lwf006164 链接:https://blog.csdn.net/lwf006164/article/details/96754526 来源:Hive篇.set命令使用
   | 
 
实操
Hive 命令行下执行 set 命令,仅当前会话有效
1 2 3 4 5
   | # 设置显示当前使用的数据库 set hive.cli.print.current.db=true;
  #  设置显示表名 set hive.cli.print.header=true;
   | 
 
Hive 脚本中配置 set 命令,当前机器用户有效   
1 2 3 4 5 6 7 8 9
   | # 进入编辑模式,在执行 hive 命令进入 shell 命令行的时候默认会加载这个脚本 vi ~/.hiverc
  # 将下面的两行命令添加到该文件中 # 设置显示当前使用的数据库 set hive.cli.print.current.db=true;
  # 设置显示表名 set hive.cli.print.header=true;
   | 
 
查看 Hive 历史操作命令集可以浏览 ~/.hivehistory