You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Abhishek Kumar <ab...@gmail.com> on 2023/02/02 04:53:06 UTC
Review Request 74290: RANGER-4064: Fix python client usage on SSL enabled cluster w/o host verification
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74290/
-----------------------------------------------------------
Review request for ranger and Madhan Neethiraj.
Bugs: RANGER-4064
https://issues.apache.org/jira/browse/RANGER-4064
Repository: ranger
Description
-------
The patch allows python client to connect to https ranger w/o host verification while maintaining backward compatibility.
Diffs
-----
intg/src/main/python/apache_ranger/client/ranger_client.py 527380de7
Diff: https://reviews.apache.org/r/74290/diff/1/
Testing
-------
Tested using python 3.9.6:
from apache_ranger.model.ranger_service import *
from apache_ranger.client.ranger_client import *
from apache_ranger.model.ranger_policy import *
ranger_url = 'https://somehost:6182'
ranger_auth = ('admin', 'XXXXXXXXXXXXX')
ranger = RangerClient(ranger_url, ranger_auth)
ranger.session.verify = False
service = RangerService()
service.name = 'test_hive'
service.type = 'hive'
service.configs = {'username':'hive', 'password':'hive', 'jdbc.driverClassName': 'org.apache.hive.jdbc.HiveDriver', 'jdbc.url': 'jdbc:hive2://ranger-hadoop:10000', 'hadoop.security.authorization': 'true'}
created_service = ranger.create_service(service)
Thanks,
Abhishek Kumar
Re: Review Request 74290: RANGER-4064: Fix python client usage on SSL enabled cluster w/o host verification
Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74290/#review225145
-----------------------------------------------------------
Ship it!
Ship It!
- Madhan Neethiraj
On Feb. 2, 2023, 4:53 a.m., Abhishek Kumar wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74290/
> -----------------------------------------------------------
>
> (Updated Feb. 2, 2023, 4:53 a.m.)
>
>
> Review request for ranger and Madhan Neethiraj.
>
>
> Bugs: RANGER-4064
> https://issues.apache.org/jira/browse/RANGER-4064
>
>
> Repository: ranger
>
>
> Description
> -------
>
> The patch allows python client to connect to https ranger w/o host verification while maintaining backward compatibility.
>
>
> Diffs
> -----
>
> intg/src/main/python/apache_ranger/client/ranger_client.py 527380de7
>
>
> Diff: https://reviews.apache.org/r/74290/diff/1/
>
>
> Testing
> -------
>
> Tested using python 3.9.6:
>
> from apache_ranger.model.ranger_service import *
> from apache_ranger.client.ranger_client import *
> from apache_ranger.model.ranger_policy import *
> ranger_url = 'https://somehost:6182'
> ranger_auth = ('admin', 'XXXXXXXXXXXXX')
> ranger = RangerClient(ranger_url, ranger_auth)
> ranger.session.verify = False
> service = RangerService()
> service.name = 'test_hive'
> service.type = 'hive'
> service.configs = {'username':'hive', 'password':'hive', 'jdbc.driverClassName': 'org.apache.hive.jdbc.HiveDriver', 'jdbc.url': 'jdbc:hive2://ranger-hadoop:10000', 'hadoop.security.authorization': 'true'}
> created_service = ranger.create_service(service)
>
>
> Thanks,
>
> Abhishek Kumar
>
>