<?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: permission issue between hive and nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122601#M85357</link>
    <description>&lt;P&gt;
	If NiFi is running as a user that can change permissons in HDFS, you should be able to use the following properties in PutHDFS to do the chown/chmod:&lt;/P&gt;&lt;P&gt;Permissions umask &lt;/P&gt;&lt;P&gt;Remote Owner &lt;/P&gt;&lt;P&gt;Remote Group&lt;/P&gt;&lt;P&gt;...according to the documentation: &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.hadoop.PutHDFS/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.hadoop.PutHDFS/index.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Mar 2016 00:01:39 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2016-03-12T00:01:39Z</dc:date>
    <item>
      <title>permission issue between hive and nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122600#M85356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having some permission issue with Hive. I wrote a file in HDFS using the PutHDFS nifi processor.&lt;/P&gt;&lt;P&gt;When i try to create a table from this location in Hive Ambari view i get this error message :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;H110 Unable to submit statement. Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [admin] does not have [READ] privilege on [hdfs://sandbox.hortonworks.com:8020/tmp/fb_post_name2] [ERROR_STATUS]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can fix that by typing :&lt;/P&gt;&lt;PRE&gt; sudo -u hdfs hadoop fs chown -R admin /tmp/fb_post_name2

sudo -u hdfs hadoop fs chmod 777 /tmp/fb_post_name2&lt;/PRE&gt;&lt;P&gt;But do i have a way to make it automatic (with the executeProcess processor for instance)?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:45:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122600#M85356</guid>
      <dc:creator>lubinlemarchand</dc:creator>
      <dc:date>2016-03-11T23:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: permission issue between hive and nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122601#M85357</link>
      <description>&lt;P&gt;
	If NiFi is running as a user that can change permissons in HDFS, you should be able to use the following properties in PutHDFS to do the chown/chmod:&lt;/P&gt;&lt;P&gt;Permissions umask &lt;/P&gt;&lt;P&gt;Remote Owner &lt;/P&gt;&lt;P&gt;Remote Group&lt;/P&gt;&lt;P&gt;...according to the documentation: &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.hadoop.PutHDFS/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.hadoop.PutHDFS/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2016 00:01:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122601#M85357</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-03-12T00:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: permission issue between hive and nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122602#M85358</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@mburgess&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thank you very much. I tried to change the remote Owner but apparently i was not executing nifi as super user. So i went to the shell, stopped nifi and typed :&lt;/P&gt;&lt;PRE&gt;sudo bash /opt/nifi-1.1.1.0-12/bin/nifi.sh start&lt;/PRE&gt;&lt;P&gt;However i'm still not considered as super user. Should i change something in the configuration of nifi?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2016 00:45:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122602#M85358</guid>
      <dc:creator>lubinlemarchand</dc:creator>
      <dc:date>2016-03-12T00:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: permission issue between hive and nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122603#M85359</link>
      <description>&lt;P&gt;Being the client OS superuser doesn't imply that user is a superuser on HDFS. You'd need to add a user to Hadoop with the same UID and GID as your client user, and make the Hadoop user a superuser on that system, or better yet, just give the user the permissions it needs for the desired folder(s): &lt;A href="http://stackoverflow.com/questions/24184306/how-to-add-user-in-supergroup-of-hdfs-in-linux" target="_blank"&gt;http://stackoverflow.com/questions/24184306/how-to-add-user-in-supergroup-of-hdfs-in-linux&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2016 02:33:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/permission-issue-between-hive-and-nifi/m-p/122603#M85359</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-03-12T02:33:29Z</dc:date>
    </item>
  </channel>
</rss>

