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

readline bug in centos 7 causes the Impala shell to produce garbled output when used in non-interactive mode.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.2
    • Impala 2.3.0
    • Clients
    • Centos 7

    Description

      According to https://bugs.python.org/issue19884, the default readline that gets packaged with centos 7 causes a bunch of escape characters to appear in the impala-shell output. This is quite bad for scripting against the shell in non-interactive mode.

      There are a bunch of ways to solve this, for e.g: http://stackoverflow.com/questions/15760712/python-readline-module-prints-escape-character-during-import

      I think the simplest way to fix it is to set TERM to a dummy value instead of xterm-256 for the shell sub process when it's used in non-interactive mode.

      Attachments

        Activity

          People

            ishaan Ishaan Joshi
            ishaan Ishaan Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: