<?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 Re: what is the default behavior of insert overwrite on external hdfs table? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/what-is-the-default-behavior-of-insert-overwrite-on-external/m-p/236538#M198351</link>
    <description>&lt;P&gt;Hi Ariel, thanks for your reply.&lt;/P&gt;&lt;P&gt;We are actually using a vendor application that using Hive, the vendor application first delete the folder then do the insert overwrite on the external table and it fails, and it is hard to change the process within the vendor application.&lt;/P&gt;&lt;P&gt;For our cluster setting, hive should able to impersonate all users:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;    &amp;lt;property&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;      &amp;lt;name&amp;gt;hadoop.proxyuser.hive.groups&amp;lt;/name&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;      &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;    &amp;lt;/property&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Vendor claimed that the insert overwrite should able to create the folder if the folder does not exist:&lt;/P&gt;&lt;P&gt;"the behavior you’ve shown with
beeline is not the expected behavior for insert/overwrite. Insert/overwrite
should create the directory and write to it, or if it already exists, should
clobber then remake it."&lt;/P&gt;&lt;P&gt;We are not too sure about if this is true, that's why we are asking about the default behavior of insert overwrite.&lt;/P&gt;&lt;P&gt;What are we testing is a very simple insert overwrite:&lt;/P&gt;&lt;P&gt;INSERT OVERWRITE TABLE
`dev_tc30_dataiku`.`config_another_test_output`  SELECT *&lt;/P&gt;&lt;P&gt;  FROM
`dev_tc30_dataiku`.`config_another_test_dev_demo`&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 10:39:27 GMT</pubDate>
    <dc:creator>dahai_long</dc:creator>
    <dc:date>2018-11-22T10:39:27Z</dc:date>
  </channel>
</rss>

