<?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 Ambari - Manage HIVE view - Add Groups using REST in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237562#M85401</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to know if is possible to add a &lt;STRONG&gt;Permission Group&lt;/STRONG&gt; to the HIVE View (Hive View 2.0) using REST API....&lt;/P&gt;&lt;P&gt;The Group has been created and defined.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93796-hiveviewpermissions.png" style="width: 1076px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14219iCB6C22E20DEF4685/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93796-hiveviewpermissions.png" alt="93796-hiveviewpermissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 23:12:49 GMT</pubDate>
    <dc:creator>daniel_issaharo</dc:creator>
    <dc:date>2019-08-17T23:12:49Z</dc:date>
    <item>
      <title>Ambari - Manage HIVE view - Add Groups using REST</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237562#M85401</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to know if is possible to add a &lt;STRONG&gt;Permission Group&lt;/STRONG&gt; to the HIVE View (Hive View 2.0) using REST API....&lt;/P&gt;&lt;P&gt;The Group has been created and defined.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93796-hiveviewpermissions.png" style="width: 1076px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14219iCB6C22E20DEF4685/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93796-hiveviewpermissions.png" alt="93796-hiveviewpermissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:12:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237562#M85401</guid>
      <dc:creator>daniel_issaharo</dc:creator>
      <dc:date>2019-08-17T23:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari - Manage HIVE view - Add Groups using REST</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237563#M85402</link>
      <description>&lt;P&gt;
	Hi &lt;A rel="user" href="https://community.cloudera.com/users/99613/danielissaharoff.html" nodeid="99613"&gt;@Daniel Issaharoff&lt;/A&gt; ,
&lt;/P&gt;
&lt;P&gt;
	Can you please try the following REST API : 
&lt;/P&gt;
&lt;PRE&gt;
curl -u &amp;lt;USERNAME&amp;gt;:&amp;lt;PASSWORD&amp;gt; -H "X-Requested-By:ambari" -i -X POST &lt;A href="http://&amp;lt;AMBARIFQDN&amp;gt;:8080/api/v1/views/HIVE/versions/2.0.0/instances/&amp;lt;HIVE_INSTANCE_NAME&amp;gt;/privileges" target="_blank"&gt;http://&amp;lt;AMBARIFQDN&amp;gt;:8080/api/v1/views/HIVE/versions/2.0.0/instances/&amp;lt;HIVE_INSTANCE_NAME&amp;gt;/privileges&lt;/A&gt; -d '[{
    "PrivilegeInfo": {
      "permission_name": "VIEW.USER",
      "principal_name": "&amp;lt;YOUR DESIRED GROUP NAME&amp;gt;",
      "principal_type": "GROUP"
    }
  }]'
&lt;/PRE&gt;
&lt;P&gt;
	for ex : 
&lt;/P&gt;
&lt;P&gt;
	here qa is the new group privilage i am adding for my AUTO_HIVE20_INSTANCE
&lt;/P&gt;
&lt;PRE&gt;
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST &lt;A href="http://asnaik1.openstacklocal:8080/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/privileges" target="_blank"&gt;http://asnaik1.openstacklocal:8080/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/privileges&lt;/A&gt; -d '[{
    "PrivilegeInfo": {
      "permission_name": "VIEW.USER",
      "principal_name": "qa",
      "principal_type": "GROUP"
    }
  }]'
&lt;/PRE&gt;
&lt;P style="color:green"&gt;
	&lt;STRONG&gt;If this is the answer you are looking for please accept my answer.&lt;/STRONG&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:40:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237563#M85402</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-10T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari - Manage HIVE view - Add Groups using REST</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237564#M85403</link>
      <description>&lt;P&gt;Hello @Akhil S Naik&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt reply.... and of course, for your help! It worked!&lt;BR /&gt;(I needed to convert it to a PowerShell &lt;EM&gt;Invoke-WebRequest&lt;/EM&gt; call, but it worked fine!&lt;BR /&gt;I'm working in an Azure HDInsight cluster, and when the cluster starts Ambari does not have the group defined in the Hive view.&lt;BR /&gt;(I don't know why Ambari does not keep that information...)&lt;BR /&gt;&lt;BR /&gt;Once again, Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 23:35:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237564#M85403</guid>
      <dc:creator>daniel_issaharo</dc:creator>
      <dc:date>2018-12-10T23:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari - Manage HIVE view - Add Groups using REST</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237565#M85404</link>
      <description>&lt;P&gt;For those interested in using this in PowerShell, This is the way I'm calling the REST-API:&lt;/P&gt;&lt;PRE&gt;$Headers = @{'X-Requested-By' = 'ambari'} 

$Body = '[{"PrivilegeInfo": { "permission_name": "VIEW.USER", "principal_name": "group_poc", "principal_type": "GROUP" } }]' 

$Resp = Invoke-WebRequest -Method Post -Uri "https://&amp;lt;Your-Cluster-Name&amp;gt;/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/privileges/"  -Credential &amp;lt;Your-Credentials&amp;gt; -Headers $Headers  -Body $Body&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 23:40:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Manage-HIVE-view-Add-Groups-using-REST/m-p/237565#M85404</guid>
      <dc:creator>daniel_issaharo</dc:creator>
      <dc:date>2018-12-10T23:40:56Z</dc:date>
    </item>
  </channel>
</rss>

