Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 2.2
-
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.