-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retain logging from Hive #33
Retain logging from Hive #33
Conversation
Even if check & throw when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% positive answer to my question
@@ -56,7 +55,7 @@ | |||
|
|||
<dependency> | |||
<groupId>org.slf4j</groupId> | |||
<artifactId>slf4j-nop</artifactId> | |||
<artifactId>slf4j-jdk14</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand, thanks to usage of slf4j-jdk
we will be able to control that with Presto log.properties
. Am I right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concern with this change is that the logs will be flooded with garbage. We want logging to be useful out of the box at the default Can we solve this by subclassing |
I thought about
Alternatively, we can override |
Yes another option would be to inspect |
For Avro, the following is helpful -- prestodb/presto#11673 Still, i think we should unlock logging from Hive. With the help of prestodb/presto#11671 we can provide silence all overly verbose Hive logging out of the box. |
For convenience of administrators, provide `log.properties` as part of an RPM install. That way, people do not have to think where the file should be put. Later, we can provide useful logging configuration: - suppress overly verbose logging from Hive, see prestodb/presto-hive-apache#33 - logging configuration for troubleshooting problems ("uncomment ... when diagnosing ..."), see e.g. https://github.com/prestodb/presto/wiki/Security-Troubleshooting-Guide#before-you-begin
I propose airlift/airlift#683 as a way forward:
|
Superseded by #34 |
When logging it silenced from Hive as a whole, it makes it cumbersome to troubleshoot problems with Avro.
This is because
AvroSerDe
logs errors instead of rethrowing them.https://github.com/apache/hive/blob/e161b01136ea14d1f9358d9b71aea61951bfaab0/serde/src/java/org/apache/hadoop/hive/serde2/avro/AvroSerDe.java#L197-L202
While, same AvroSerDe logs a log on INFO level, we should address the problem with pre-packaged
log.properties
file.