Member since
12-07-2018
3
Posts
0
Kudos Received
0
Solutions
12-10-2018
03:40 PM
For those interested in using this in PowerShell, This is the way I'm calling the REST-API: $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://<Your-Cluster-Name>/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/privileges/" -Credential <Your-Credentials> -Headers $Headers -Body $Body
... View more
12-10-2018
03:35 PM
Hello @Akhil S Naik Thanks a lot for your prompt reply.... and of course, for your help! It worked! (I needed to convert it to a PowerShell Invoke-WebRequest call, but it worked fine! I'm working in an Azure HDInsight cluster, and when the cluster starts Ambari does not have the group defined in the Hive view. (I don't know why Ambari does not keep that information...) Once again, Thanks for your help. Regards, Daniel
... View more
12-07-2018
06:37 PM
Hello, I would like to know if is possible to add a Permission Group to the HIVE View (Hive View 2.0) using REST API.... The Group has been created and defined. Thanks in advance, Daniel
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hive