<?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: Ambari Hive view permission error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217419#M179328</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29171/chirutnk.html" nodeid="29171"&gt;@Chiranjeevi Nimmala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are getting followine error , other errors might be the side effect of this.&lt;/P&gt;&lt;PRE&gt;Causedby: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):Unauthorized connection forsuper-user: root from IP XXXXXXXXX&lt;/PRE&gt;&lt;P&gt;So please Gor o HDFS--&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; Custom core-site     and add the following property:&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.root.hosts=*&lt;/PRE&gt;&lt;P&gt;The restart the required services and then try accessing the view again&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;In the above parameter either you need to specify Comma separated list of All the DataNode Hostnames including Ambari Server host name ... or else you can define  *   &lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 17:37:30 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-08-11T17:37:30Z</dc:date>
    <item>
      <title>Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217418#M179327</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I am running HDP 2.4 on EC2 cloud. Recently i have installed Ranger and integrated Hive. When i am trying to use the Ambari Hive view using the admin account, i am receiving the below two errors. Could you please help ? i am attaching few screenshots showing the configurations required.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/27391-admin-hdfs-policy.png"&gt;admin-hdfs-policy.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/27392-admin-hive-policy.png"&gt;admin-hive-policy.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/27393-proxy.png"&gt;proxy.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;admin OS account is working fine:&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;[ec2-user@XXXXXXXXX ~]$ id admin &lt;/P&gt;&lt;P&gt;uid=1012(admin) gid=1012(admin) groups=1012(admin),1001(hdpmasters) &lt;/P&gt;&lt;P&gt;[ec2-user@XXXXXXXX ~]$ hdfs dfs -ls /user &lt;/P&gt;&lt;P&gt;Found 9 items &lt;/P&gt;&lt;P&gt;drwxr-xr-x   - admin     hdfs          0 2017-08-11 04:35 /user/admin&lt;/P&gt;&lt;P&gt;
[admin@XXXXXXXX ~]$ hdfs dfs -ls /user/admin &lt;/P&gt;&lt;P&gt;Found 2 items &lt;/P&gt;&lt;P&gt;drwxr-xr-x   - admin hdfs          0 2017-08-11 05:33 /user/admin/.hiveJars &lt;/P&gt;&lt;P&gt;drwxr-xr-x   - admin hdfs          0 2017-08-11 04:35 /user/admin/testing&lt;/P&gt;&lt;P&gt;
[admin@XXXXXX ~]$ hive
WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/2.4.3.0-227/0/hive-log4j.properties&lt;/P&gt;&lt;P&gt;
hive&amp;gt; show databases; &lt;/P&gt;&lt;P&gt;OK &lt;/P&gt;&lt;P&gt;default &lt;/P&gt;&lt;P&gt;Time taken: 1.044 seconds, Fetched: 1 row(s)&lt;/P&gt;&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;Failed to execute statement: show databases like '*'&lt;/P&gt;&lt;PRE&gt;org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [admin] does not have [USE] privilege on [null]
&lt;/PRE&gt;&lt;P&gt;E090 HDFS020 Could not write file /user/admin/hive/jobs/hive-job-5-2017-08-11_05-43/query.hql [HdfsApiException]&lt;/P&gt;&lt;PRE&gt;org.apache.ambari.view.utils.hdfs.HdfsApiException: HDFS020 Could not write file /user/admin/hive/jobs/hive-job-5-2017-08-11_05-43/query.hql

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): Unauthorized connection for super-user: root from IP XXXXXXXXX
&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6453i619D10FBBCCCA455/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="admin-hive-policy.png" title="admin-hive-policy.png" /&gt;</description>
      <pubDate>Fri, 11 Aug 2017 17:09:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217418#M179327</guid>
      <dc:creator>chiru_tnk</dc:creator>
      <dc:date>2017-08-11T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217419#M179328</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29171/chirutnk.html" nodeid="29171"&gt;@Chiranjeevi Nimmala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are getting followine error , other errors might be the side effect of this.&lt;/P&gt;&lt;PRE&gt;Causedby: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):Unauthorized connection forsuper-user: root from IP XXXXXXXXX&lt;/PRE&gt;&lt;P&gt;So please Gor o HDFS--&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; Custom core-site     and add the following property:&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.root.hosts=*&lt;/PRE&gt;&lt;P&gt;The restart the required services and then try accessing the view again&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;In the above parameter either you need to specify Comma separated list of All the DataNode Hostnames including Ambari Server host name ... or else you can define  *   &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 17:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217419#M179328</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-11T17:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217420#M179329</link>
      <description>&lt;P&gt;Adding to my question, I have added admin OS account into a group 'hdpmasters' and i used this group while configuring Hive Ranger policy. If i use 'admin' instead of group in the policy configuration, strangely i am not able to see the error "FAILED:HiveAccessControlExceptionPermission denied: user [admin] does not have [USE] privilege on [null]" anymore(I can view the default database in Ambari view). Can i know why this is happening ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27394-using-admin-instead-of-groups.png" style="width: 1208px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16152i1F53DB5BF651C6E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27394-using-admin-instead-of-groups.png" alt="27394-using-admin-instead-of-groups.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:59:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217420#M179329</guid>
      <dc:creator>chiru_tnk</dc:creator>
      <dc:date>2019-08-18T02:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217421#M179330</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418" target="_blank"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I have already tried setting it to '*' but still not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27395-proxy-settings.png" style="width: 1240px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16151iFC77494E0D03FF05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27395-proxy-settings.png" alt="27395-proxy-settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:59:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217421#M179330</guid>
      <dc:creator>chiru_tnk</dc:creator>
      <dc:date>2019-08-18T02:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217422#M179331</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/29171/chirutnk.html"&gt;Chiranjeevi Nimmala&lt;/A&gt;, What is group permission on HDFS location for Hive where this hive table is stored ? 'hdpmasters' group should have permission of HDFS file system where hive table is stored.&lt;/P&gt;&lt;P&gt;See if below property is set.&lt;/P&gt;&lt;P&gt;webhcat.proxyuser.root.groups *&lt;/P&gt;&lt;P&gt;webhcat.proxyuser.root.hosts *&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Fahim&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 18:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217422#M179331</guid>
      <dc:creator>MFP</dc:creator>
      <dc:date>2017-08-11T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217423#M179332</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418" target="_blank"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Will the below findings help, &lt;/P&gt;&lt;P&gt;If i add admin user instead of its group hdpmasters in the Ranger hive policy. Both of the errors are not being shown anymore in the Hive view. The problem is only if i use its group 'hdpmasters' in the policy. Please find below&lt;/P&gt;&lt;P&gt;[ec2-user@XXXXXXX ~]$ hdfs dfs -ls /user &lt;/P&gt;&lt;P&gt;Found 9 items
drwxr-xr-x   - admin &lt;/P&gt;&lt;P&gt;    hdpmasters          0 2017-08-11 07:02 /user/admin&lt;/P&gt;&lt;P&gt;
[ec2-user@XXXXXX ~]$&lt;/P&gt;&lt;P&gt; id admin
uid=1012(admin) gid=1012(admin) groups=1012(admin),1001(hdpmasters)&lt;/P&gt;&lt;P&gt;Why it is only working if i give 'admin' directly but not the group ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27396-hive.png" style="width: 1289px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16150i455DF1D069078C57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27396-hive.png" alt="27396-hive.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:58:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217423#M179332</guid>
      <dc:creator>chiru_tnk</dc:creator>
      <dc:date>2019-08-18T02:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217424#M179333</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/29171/chirutnk.html"&gt;@Chiranjeevi Nimmala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make the below changes in hive  and restart all stale configuration&lt;/P&gt;&lt;PRE&gt;webhcat.proxyuser.root.groups *
webhcat.proxyuser.root.hosts *&lt;/PRE&gt;&lt;P&gt;See Ambari views &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-views/content/setup_WebHCat_proxy_user_pig_view.html"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helped &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 18:18:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217424#M179333</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-08-11T18:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive view permission error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217425#M179334</link>
      <description>&lt;P&gt;I am able to find the solution, I was running Ranger admin on host1 and Hiveserver on host2 and i created the admin OS account in host1 but not in host2(where hive server is running). Creating the admin account  and its group (hdpmasters) in host2 resolved this issue. I guess Ambari views might need the OS account/ Group to be present on the server where the service(being accessed by view) is installed.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 18:29:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-view-permission-error/m-p/217425#M179334</guid>
      <dc:creator>chiru_tnk</dc:creator>
      <dc:date>2017-08-11T18:29:47Z</dc:date>
    </item>
  </channel>
</rss>

