GitHub user beltran opened a pull request: https://github.com/apache/hive/pull/375
HIVE-19886: Logs may be directed to 2 files if --hiveconf hive.log.fi⦠â¦le is used. This is still dumping some logs for the metastore before the reconfiguration is done: ``` 2018-06-18T16:39:17,109 INFO [main] conf.MetastoreConf: Found configuration file file:/hadoop-3.1.0/etc/hadoop/hive-site.xml 2018-06-18T16:39:17,364 INFO [main] conf.MetastoreConf: Unable to find config file hivemetastore-site.xml 2018-06-18T16:39:17,364 INFO [main] conf.MetastoreConf: Found configuration file null 2018-06-18T16:39:17,365 INFO [main] conf.MetastoreConf: Unable to find config file metastore-site.xml 2018-06-18T16:39:17,365 INFO [main] conf.MetastoreConf: Found configuration file null ``` (and that's it). Before, the loggers created before the logging configuration happened sent the logs to the wrong file forever. It's hard to get rid of those because `MetastoreConf` is used to create the configure logging(and therefore spits logs before the configuration happens) so some refactoring would have to be done. You can merge this pull request into a Git repository by running: $ git pull https://github.com/beltran/hive HIVE-19886 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/375.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #375 ---- commit a4b0fbff76ff912823e912b7f2104fbd7db88116 Author: Jaume Marhuenda <jaumemarhuenda@...> Date: 2018-06-18T16:44:13Z HIVE-19886: Logs may be directed to 2 files if --hiveconf hive.log.file is used ---- ---