<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Funny characters in output file from Impala shell in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24902#M5055</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to output the results of some queries passed to impala-shell (in the real scenario read from an input file) to an output file.&amp;nbsp; I have observed that when I redirect the output of impala-shell to a file in the normal bash way, there are some funny characters printed at the beginning of each result block ^[[?1034h (please see screenshot below):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell --quiet -i server:port -d database -q "select count(*) as cnt from table1" &amp;gt; output.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="impala shell output.png" style="width: 669px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/857iDEAD729D72E89722/image-size/large?v=v2&amp;amp;px=999" role="button" title="impala shell output.png" alt="impala shell output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the following syntax is used, the funny characters are not printed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell --quiet -i server:port -d database -q "select count(*) as cnt from table1" -o output.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug in impala-shell or how would I stop those funny characters from appearing? For some other reasons I need to use the standard redirection to a file rather than the -o option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:22:12 GMT</pubDate>
    <dc:creator>MartinEK</dc:creator>
    <dc:date>2022-09-16T09:22:12Z</dc:date>
    <item>
      <title>Funny characters in output file from Impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24902#M5055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to output the results of some queries passed to impala-shell (in the real scenario read from an input file) to an output file.&amp;nbsp; I have observed that when I redirect the output of impala-shell to a file in the normal bash way, there are some funny characters printed at the beginning of each result block ^[[?1034h (please see screenshot below):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell --quiet -i server:port -d database -q "select count(*) as cnt from table1" &amp;gt; output.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="impala shell output.png" style="width: 669px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/857iDEAD729D72E89722/image-size/large?v=v2&amp;amp;px=999" role="button" title="impala shell output.png" alt="impala shell output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the following syntax is used, the funny characters are not printed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell --quiet -i server:port -d database -q "select count(*) as cnt from table1" -o output.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug in impala-shell or how would I stop those funny characters from appearing? For some other reasons I need to use the standard redirection to a file rather than the -o option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:22:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24902#M5055</guid>
      <dc:creator>MartinEK</dc:creator>
      <dc:date>2022-09-16T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Funny characters in output file from Impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24928#M5056</link>
      <description>&lt;P&gt;This is by design. I forgot the rationale. It can be avoided by setting env variable TERM to linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(for bash and friends)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export TERM=linux&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:25:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24928#M5056</guid>
      <dc:creator>athtsang</dc:creator>
      <dc:date>2015-02-23T02:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Funny characters in output file from Impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24930#M5057</link>
      <description>This fixes the issue. Thanks a lot for quick reply!</description>
      <pubDate>Mon, 23 Feb 2015 03:34:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Funny-characters-in-output-file-from-Impala-shell/m-p/24930#M5057</guid>
      <dc:creator>MartinEK</dc:creator>
      <dc:date>2015-02-23T03:34:19Z</dc:date>
    </item>
  </channel>
</rss>

