Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11435

impala-shell gets "No handlers could be found for logger" from Thrift code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • Impala 4.2.0
    • None
    • Clients
    • 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)

      Attachments

        Activity

          People

            prozsa Peter Rozsa
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: