2017-05-29 11 views
1

テストサーバーには、hive-site.xmlファイルが多数含まれています。HiveのCLIで使用されるhive-site.xml

hiveコマンドでHiveのCLIを実行します。

そのHiveのCLIで、どのファイルをhive-site.xmlが使用しているかを特定する方法はありますか?

HIVE_CONF_DIR環境変数が設定されていません。

答えて

1

この

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$ 
を実行します
関連する問題