Member since
02-09-2017
9
Posts
3
Kudos Received
0
Solutions
05-02-2017
09:43 AM
1 Kudo
I'm working on enable hawq ranger plugin access ranger server(e.g. fetch policies from ranger server) in kerberos way. Some codes confused me: code below are a fraction in function getServicePoliciesIfUpdated() in RangerAdminRestClient.java. I'm wondering that where is code doing authentication? no UserGroupInformation.loginUserFromKeytab() and UserGroupInformation.checkTGTAndReloginFromKeytab() is called at all. The doAs function, as far as i know, is just the impersonation of user to do the http request(which is a jersey client in detail). Is there anyone can tell me how does ranger plugin do authentication(when fetch policies from Ranger server) in kerberos way? How to renew the ticket? Thanks UserGroupInformation user = MiscUtil.getUGILoginUser();
if (isSecureMode) {
PrivilegedAction<ClientResponse> action = new PrivilegedAction<ClientResponse>() {
public ClientResponse run() {
WebResource secureWebResource = createWebResource(RangerRESTUtils.REST_URL_GET_SECURE_SERVICE_TAGS_IF_UPDATED + serviceName);
return secureWebResource.accept(RangerRESTUtils.REST_MIME_TYPE_JSON).get(ClientResponse.class);
}
};
response = user.doAs(action);
}
... View more
Labels:
- Labels:
-
Apache Ranger
04-28-2017
09:33 AM
1 Kudo
Found that in RangerAdminRESTClient.java, the function getServicePoliciesIfUpdated() use UserGroupInformation.isSecurityEnabled() to check whether to use kerberos.
... View more
04-26-2017
03:58 AM
Thanks, sorry for post the same question.
... View more
04-26-2017
03:40 AM
Hi vperiasamy, I check the Ranger 0.6 release note. It introduce kerberos in BaseClient which is used by hiveclinet, hbaseclient, which is used by lookup. My question is whether plugin connect to ranger server support Kerberos. Could you please give me more details? Thanks
... View more
04-25-2017
09:50 AM
Ranger plugin(Hive, Hbase, Hawq) user RangerAdminRestClient to fetch policies from ranger server. It support ssl/tls to do authentication. My question is that does it support to use kerberos to do authentication?(Since it's http, so spnego is more specific) I already know that ranger lookup support kerberos(e.g. ranger server lookup hbase), my question is from plugin side to ranger server side.
... View more
Labels:
- Labels:
-
Apache Ranger
04-25-2017
09:44 AM
1 Kudo
Ranger plugin(Hive,Hbase,Hawq etc.) use RangerBasePlugin to fetch policies from ranger server, while RangerBasePlugin use RangerAdminRestClient by default to fetch policies. RangerAdminRestClient can be configured to use ssl/tls to do authentication. But my question is that does it support Kerberos authentication(since restclient use http, spnego maybe more specific)?
... View more
Labels:
- Labels:
-
Apache Ranger
02-10-2017
02:00 AM
Thanks @akulkarni, the single quotes works.
... View more
02-09-2017
09:31 AM
Yes, I could delete by id. But I find policy can be deleted by policy name in Ranger wiki. Doesn't it work?
... View more
02-09-2017
06:21 AM
Hi, I try to delete ranger policy by name, but failed(delete by policy id succeeds): curl -v -u admin:admin -X DELETE http://myhost:6080/service/public/v2/api/policy?servicename=myservice&policyname=mypolicy It reports HTTP/1.1 400 Bad Request Does anyone know the reasons? , Follow the document I user the Restapi to delete a policy I can successfully delete policy by poicyid using curl, but failed to delete policy by name. curl -v -u admin:admin -X DELETE http://35.167.43.5:6080/service/public/v2/api/policy?servicename=hawq&policyname=mypolicy But it reports HTTP/1.1 400 Bad Request. Does anyone know the reason? Thanks
... View more
Labels:
- Labels:
-
Apache Ranger