You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/06/15 14:53:00 UTC

[jira] [Commented] (IMPALA-11435) impala-shell gets "No handlers could be found for logger" from Thrift code

    [ https://issues.apache.org/jira/browse/IMPALA-11435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733108#comment-17733108 ] 

ASF subversion and git services commented on IMPALA-11435:
----------------------------------------------------------

Commit 9727b46f3b13406a1970501db2ca06bb065719fd in impala's branch refs/heads/master from Vincent Tran
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=9727b46f3 ]

IMPALA-11435: Fixup - Suppress logging for 'thrift' in impala-shell

Commit cd9f3f578 aims to suppres logging for the 'thrift' library
within impala-shell. However, it does not work in all case. This change
moves the fix into the 'main' function, which suppresses the unwanted
messagge.
Tested by connecting through impala-shell with Python2.7 and Python3.6
with SSL enabled.

Change-Id: I4de95b1b67abe9a0b4637910b0894addddda23d5
Reviewed-on: http://gerrit.cloudera.org:8080/20074
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> impala-shell gets "No handlers could be found for logger" from Thrift code
> --------------------------------------------------------------------------
>
>                 Key: IMPALA-11435
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11435
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 4.2.0
>            Reporter: Joe McDonnell
>            Assignee: Peter Rozsa
>            Priority: Major
>
> In some configurations (e.g. SSL), impala-shell will complain about logging not being configured at connect time:
> {noformat}
> No handlers could be found for logger "thrift.transport.sslcompat"{noformat}
> 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:
> {noformat}
> logging.basicConfig(level=logging.CRITICAL){noformat}
> 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:
> {noformat}
> logging.disable(logging.CRITICAL){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org