<?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 Impala-Shell vs Impala in Hue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32514#M7953</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use the TRUNCATE command, however&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I&amp;nbsp;the folowing command&lt;/P&gt;&lt;PRE&gt;TRUNCATE TABLE table_name  PARTITION  (datebymonth='2014-10')&lt;/PRE&gt;&lt;P&gt;in impala-shell I get an error:&lt;/P&gt;&lt;PRE&gt;ERROR: AnalysisException: Syntax error in line 6:
  TRUNCATE TABLE user_events  ...
  ^
  Encountered: IDENTIFIER
  Expected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, USE, VALUES, WITH
  &lt;/PRE&gt;&lt;P&gt;In hue impala editor everything is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I need to use the impala-shell because I add these queries in a cron job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The impala version that I use:&amp;nbsp;v2.1.4-cdh5&lt;/P&gt;&lt;P&gt;Cloudera version: CDH 5.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 13:57:20 GMT</pubDate>
    <dc:creator>AlinaGHERMAN</dc:creator>
    <dc:date>2026-04-21T13:57:20Z</dc:date>
    <item>
      <title>Impala-Shell vs Impala in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32514#M7953</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use the TRUNCATE command, however&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I&amp;nbsp;the folowing command&lt;/P&gt;&lt;PRE&gt;TRUNCATE TABLE table_name  PARTITION  (datebymonth='2014-10')&lt;/PRE&gt;&lt;P&gt;in impala-shell I get an error:&lt;/P&gt;&lt;PRE&gt;ERROR: AnalysisException: Syntax error in line 6:
  TRUNCATE TABLE user_events  ...
  ^
  Encountered: IDENTIFIER
  Expected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, USE, VALUES, WITH
  &lt;/PRE&gt;&lt;P&gt;In hue impala editor everything is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I need to use the impala-shell because I add these queries in a cron job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The impala version that I use:&amp;nbsp;v2.1.4-cdh5&lt;/P&gt;&lt;P&gt;Cloudera version: CDH 5.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:57:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32514#M7953</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2026-04-21T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Impala-Shell vs Impala in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32587#M7954</link>
      <description>&lt;P&gt;Impala currently does not support truncating an individual partition, so that syntax error you get from the shell is expected.&lt;BR /&gt;&lt;BR /&gt;I am not sure why the statement appears to work from Hue. The TRUNCATE TABLE ... PARTITION syntax is not supported, so I don't see how this would work.&lt;BR /&gt;&lt;BR /&gt;Perhaps the error is somehow not properly shown/propagated to Hue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 12:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32587#M7954</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2015-10-02T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Impala-Shell vs Impala in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32592#M7955</link>
      <description>&lt;P&gt;Effectivly, TRUNCATE doesn't apear in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-impala/latest/topics/impala_shell_commands.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/cloudera-impala/latest/topics/impala_shell_commands.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 14:01:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32592#M7955</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-10-02T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Impala-Shell vs Impala in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32650#M7956</link>
      <description>&lt;P&gt;Thanks for the notice, it could be an oversight with the docs. I'll look into it.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 00:40:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Shell-vs-Impala-in-Hue/m-p/32650#M7956</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2015-10-05T00:40:52Z</dc:date>
    </item>
  </channel>
</rss>

