Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux hive'使用哪个hive-site.xml;s CLI_Linux_Hive_Command Line Interface - Fatal编程技术网

Linux hive'使用哪个hive-site.xml;s CLI

Linux hive'使用哪个hive-site.xml;s CLI,linux,hive,command-line-interface,Linux,Hive,Command Line Interface,测试服务器包含大量hive site.xml文件 我通过Hive命令运行Hive的CLI 如何确定该配置单元的CLI使用了哪个hive site.xml文件 HIVE\u CONF\u DIR未设置环境变量。执行此命令 hive --hiveconf hive.root.logger=DEBUG,console -e '' 2>&1 | grep hive-site.xml 演示 bash-4.1$ hive --hiveconf hive.root.logger=DEBUG,c

测试服务器包含大量
hive site.xml
文件

我通过
Hive
命令运行Hive的CLI

如何确定该配置单元的CLI使用了哪个
hive site.xml
文件

HIVE\u CONF\u DIR
未设置环境变量。

执行此命令

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$