You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Marc Hoppins <hp...@gmail.com> on 2026/04/09 08:19:22 UTC

Metastore logging

Hi, All,

Can anyone please give me some help getting metastore logging split off
from the main log file?

The documentation seems to suggest that just creating
metastore-log4j2.properties will begin logging into the log file specified
within but that does not seem to be the case.

I have tried creating metastore-site.xml with no luck.
I have tried hive-metastoresite.xml within similar results.

Frankly, I would have expected something in hive-site.xml along the lines of

<name>hive.metastore.logging.enable</name>
<value>true</value>

to initiate metastore logging as hive.server2.logging.operation.enabled
exists.

We also use (old) cloudera but I believe all the config is stored in a
database as the regular xml files are quite bare but that IS logging to a
main log and metastore log.

Any suggestions would be gratefully received.

Marc

Re: Metastore logging

Posted by Denys Kuzmenko <dk...@apache.org>.
Hi Marc,

If you're running HMS (v4.x) as a standalone instance, you can configure logging via metastore-log4j2.properties. 
You can find a default template under https://github.com/apache/hive/blob/master/standalone-metastore/packaging/src/docker/conf/metastore-log4j2.properties in the Hive source tree. Place it in your conf/ directory on the classpath and adjust as needed.     

Regrads,
Denys