<?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: Hive: INSERT OVERWRITE does not work in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158866#M49194</link>
    <description>&lt;P&gt;My use case requires to write in a delimited format.  INSERT OVERWRITE LOCAL fits perfectly for this. I wish we had a way to custom delimit the content retrieved through SelectHiveQL processor, so I couldn't opt it.&lt;/P&gt;&lt;P&gt;I agree it's a good option of writing to HDFS instead.  I will attempt to modify the process, but I still wonder why it wouldn't work with write to Local filesystem, through NiFi.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 07:43:35 GMT</pubDate>
    <dc:creator>ashsskum</dc:creator>
    <dc:date>2016-12-20T07:43:35Z</dc:date>
    <item>
      <title>Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158858#M49186</link>
      <description>&lt;P&gt;I cannot get the following query run using PutHiveQL processor, it fails with the permission denied exception.  I see that the processor emulates the same behavior as in Beeline.  &lt;/P&gt;&lt;P&gt;But, I have been able to run the query from Hive CLI and writes to a file as expected.  So, we know that Hive shell is an option, but can you let me know if there is any specific settings that causes this behavior in Beeline (Hive2) preventing to write to local filesystem? &lt;/P&gt;&lt;P&gt;insert overwrite local directory '/tmp' select current_date from dual&lt;/P&gt;&lt;P&gt;Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [xxxxx] does not have [WRITE] privilege on [/tmp] (state=42000,code=40000)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 06:12:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158858#M49186</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-17T06:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158859#M49187</link>
      <description>&lt;P&gt;It seems nifi user dont have permissions to write into /tmp dir. You have two options. 1. Change the permission on /tmp folder to allow everyone to write into it. 2. If you have configured Ranger, make sure in the resource based policy for HDFS, nifi user is allowed access to all paths or specific paths you want write to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10406-screen-shot-2016-12-16-at-52349-pm.gif" style="width: 2620px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20809i0203FA6E37A39C2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10406-screen-shot-2016-12-16-at-52349-pm.gif" alt="10406-screen-shot-2016-12-16-at-52349-pm.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:09:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158859#M49187</guid>
      <dc:creator>mpandit</dc:creator>
      <dc:date>2019-08-18T12:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158860#M49188</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/9842/mpandit.html" nodeid="9842"&gt;@milind pandit&lt;/A&gt;&lt;P&gt;is right.  if you do not have ranger enabled then add nifi user to the linux group which owns /tmp. This is ACL security.  if you have ranger enabled then don't do this.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 06:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158860#M49188</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-17T06:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158861#M49189</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Ranger &lt;/STRONG&gt;is specific to HDFS. I am referring to the issue with Hive writing to the local file system, see Hive statement in my summary above. And, /tmp directory is accessible by any user&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 15:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158861#M49189</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-18T15:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158862#M49190</link>
      <description>&lt;P&gt;Please see my response above&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 15:25:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158862#M49190</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-18T15:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158863#M49191</link>
      <description>&lt;P&gt;Did you provide hive user access to local file system directory /tmp?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:27:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158863#M49191</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-19T13:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158864#M49192</link>
      <description>&lt;P&gt;Regardless the reason you've decided to use PutHiveQL for select statement (I would use SelectHiveQL and then PutFile processor to store a result of select)...&lt;/P&gt;&lt;P&gt;But... back to the use case. Both PutHiveQL and Beeline are JDBC based clients. Using "insert overwrite LOCAL directory" doesn't seem to have a sense, as you never know what LOCAL directory (which node, etc) will be in the context. If still temp files are required to be created, you can go with:&lt;/P&gt;&lt;P&gt;1. PutHiveQL (insert overwrite directory, not local).&lt;/P&gt;&lt;P&gt;2. GetHDFS&lt;/P&gt;&lt;P&gt;... continue your processes/transformations with FlowFiles as usual.&lt;/P&gt;&lt;P&gt;Please note, HDFS files will be deleted after GetHDFS will finish.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 02:38:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158864#M49192</guid>
      <dc:creator>eberezitsky</dc:creator>
      <dc:date>2016-12-20T02:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158865#M49193</link>
      <description>&lt;P&gt;What I understand is that Hive temporarily uses the /tmp on the HDFS to write into and then copies over to Local directory.  So, in the ranger the recursive access to /tmp HDFS folder has been issued.  But, the issue still persists with NiFi&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:37:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158865#M49193</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-20T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158866#M49194</link>
      <description>&lt;P&gt;My use case requires to write in a delimited format.  INSERT OVERWRITE LOCAL fits perfectly for this. I wish we had a way to custom delimit the content retrieved through SelectHiveQL processor, so I couldn't opt it.&lt;/P&gt;&lt;P&gt;I agree it's a good option of writing to HDFS instead.  I will attempt to modify the process, but I still wonder why it wouldn't work with write to Local filesystem, through NiFi.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:43:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158866#M49194</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-20T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158867#M49195</link>
      <description>&lt;P&gt;When using JDBC, local files will be created in local directories of a host running HiveServer2 you are connecting to (if you have more than one and connecting thru zookeeper - check all server hosts). So make sure you have writing permissions on those hosts, not on Nifi's one.&lt;/P&gt;&lt;P&gt;Note, the story is totally different when you are using Hive CLI of Beeline embedded mode.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:11:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158867#M49195</guid>
      <dc:creator>eberezitsky</dc:creator>
      <dc:date>2016-12-20T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: INSERT OVERWRITE does not work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158868#M49196</link>
      <description>&lt;P&gt;Do you have ranger audit enabled? if so please provide what the log shows when nifi tries to hit /tmp&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:43:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-does-not-work/m-p/158868#M49196</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-20T10:43:54Z</dc:date>
    </item>
  </channel>
</rss>

