site.xml

a9wyjsp7  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(398)

测试服务器包含大量 hive-site.xml 文件夹。
我运行hive的cli hive 命令。
如何确定 hive-site.xml 文件由该配置单元的cli使用? HIVE_CONF_DIR 未设置环境变量。

zqry0prt

zqry0prt1#

执行这个

hive --hiveconf hive.root.logger=DEBUG,console -e '' 2>&1 | grep hive-site.xml

演示

bash-4.1$ hive --hiveconf hive.root.logger=DEBUG,console -e '' 2>&1 | grep hive-site.xml
17/05/29 07:45:38 [main]: DEBUG common.LogUtils: Using hive-site.xml found on CLASSPATH at /etc/hive/conf.dist/hive-site.xml
bash-4.1$

相关问题