We're updating the issue view to help you get more done. 

Hive Metastore logging is almost nonexistent

Description

I've observed this with Hive 1.1, but this is probably not affecting only that version.

Basically, the only log line I ever see printed in hive logs is:

The log level for hive metastore needs to be changed so that it logs either at the INFO level or DEBUG level.

Release Notes

None

Activity

Show:
Chris Gianelloni
November 21, 2016, 10:20 PM

The default log level for Hive is INFO. This is due to our custom init scripts. It seems that Hive outputs most of its daemon output to STDERR. You can verify this by restarting Hive Metastore via init script from a root shell on the box in question. If you see output that should be going to a log, coming to the screen, we're not capturing it, correctly.

Ali Anwar
November 21, 2016, 11:00 PM

That didn't work out for me.

I believe we just need to support log4j.properties and set up the defaults.
For instance, I copied the hive-log4j.properties file from /etc/hive/conf.dist to /etc/hive/conf, and was able to change the root log level to INFO (from WARN), and I then saw logging in /tmp/hive.

Chris Gianelloni
December 5, 2016, 5:24 PM
Chris Gianelloni
December 7, 2016, 8:28 PM

This was merged and released in 2.8.0

Fixed

Assignee

Chris Gianelloni

Reporter

Ali Anwar

Labels

None

Docs Impact

None

UX Impact

None

Components

Priority

Major
Configure