我曾经在 $HIVE_HOME/conf/hive-site 中将 hive.cli.print.current.db 设置为 true.xml以便数据库名称在 hive 提示符下自动可见。此配置最近停止工作,因此每次启动 hive 时都必须手动设置其值。有没有人遇到过同样的问题,您的解决方案是什么?谢谢!
此属性
应在 hive 配置目录 (/etc/hive/conf) 的 .hiverc 文件(不在 hive-site.xml 中指定。创建文件<HIVE_CONF_DIR>/.hiverc
如果不存在,则包含以下内容
set hive.cli.print.current.db=true;