Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Done
-
Impala 4.2.0
-
None
-
None
-
ghx-label-2
Description
In some configurations (e.g. SSL), impala-shell will complain about logging not being configured at connect time:
No handlers could be found for logger "thrift.transport.sslcompat"
Impala-shell doesn't use Python's logging package, so it currently doesn't initialize logging. However, Thrift's python library does use the logging package, which leads to this message when running the code from impala-shell.
One option would be for impala-shell to initialize Python logging in its main function:
logging.basicConfig(level=logging.CRITICAL)
We would have to be careful to make sure that Thrift messages don't interfere with expected output (or duplicate current output). Another option would be to disable logging entirely:
logging.disable(logging.CRITICAL)