[jira] [Commented] (RANGER-3668) JSONDecodeError
[ https://issues.apache.org/jira/browse/RANGER-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508311#comment-17508311 ] Jeevan p commented on RANGER-3668: -- kindly help , i need this to work :( > JSONDecodeError > --- > > Key: RANGER-3668 > URL: https://issues.apache.org/jira/browse/RANGER-3668 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 2.2.0 > Environment: ranger is hosted on azure k8s service, im trying to > connect to it using apache-ranger python library >Reporter: Jeevan p >Priority: Major > Labels: JSON, apache-ranger, python > > {code:java} > from trino.dbapi import connect > from trino.auth import BasicAuthentication > from apache_ranger.model.ranger_service import * > from apache_ranger.client.ranger_client import * > from apache_ranger.model.ranger_policy import * > ranger_url = "http://dummy_host:; > ranger_auth = ("dummy_user", "dummy_pass") > ranger = RangerClient(ranger_url, ranger_auth) > for role in ranger.find_roles(): >print(str(role.id)) {code} > when i try to run the above code i get the below error > {code:java} > Traceback (most recent call last): > File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, > in > for role in ranger.find_roles(): > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, > in find_roles > resp = self.__call_api(RangerClient.FIND_ROLES, filter) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, > in __call_api > raise RangerServiceException(api, response) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ > respJson = response.json() > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\requests\models.py", line 910, in json > return complexjson.loads(self.text, **kwargs) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads > return _default_decoder.decode(s) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode > obj, end = self.raw_decode(s) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode > return self.scan_once(s, idx=_w(s, idx).end()) > simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) > {code} > also worth noting, giving incorrect user or pass does not change the error > received but changing the host or port does give a diff error (max retries > exceeded) -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (RANGER-3668) JSONDecodeError
[ https://issues.apache.org/jira/browse/RANGER-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeevan p updated RANGER-3668: - Environment: ranger is hosted on azure k8s service, im trying to connect to it using apache-ranger python library (was: python) > JSONDecodeError > --- > > Key: RANGER-3668 > URL: https://issues.apache.org/jira/browse/RANGER-3668 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 2.2.0 > Environment: ranger is hosted on azure k8s service, im trying to > connect to it using apache-ranger python library >Reporter: Jeevan p >Priority: Major > Labels: JSON, apache-ranger, python > > {code:java} > from trino.dbapi import connect > from trino.auth import BasicAuthentication > from apache_ranger.model.ranger_service import * > from apache_ranger.client.ranger_client import * > from apache_ranger.model.ranger_policy import * > ranger_url = "http://dummy_host:; > ranger_auth = ("dummy_user", "dummy_pass") > ranger = RangerClient(ranger_url, ranger_auth) > for role in ranger.find_roles(): >print(str(role.id)) {code} > when i try to run the above code i get the below error > {code:java} > Traceback (most recent call last): > File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, > in > for role in ranger.find_roles(): > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, > in find_roles > resp = self.__call_api(RangerClient.FIND_ROLES, filter) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, > in __call_api > raise RangerServiceException(api, response) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ > respJson = response.json() > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\requests\models.py", line 910, in json > return complexjson.loads(self.text, **kwargs) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads > return _default_decoder.decode(s) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode > obj, end = self.raw_decode(s) > File "C:\Users\j.shimoga.prakash\Desktop\pls work - > Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode > return self.scan_once(s, idx=_w(s, idx).end()) > simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) > {code} > also worth noting, i have deployed ranger on Azure kubernetes service. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (RANGER-3668) JSONDecodeError
[ https://issues.apache.org/jira/browse/RANGER-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeevan p updated RANGER-3668: - Description: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} also worth noting, giving incorrect user or pass does not change the error received but changing the host or port does give a diff error (max retries exceeded) was: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} also worth noting, i have deployed ranger on Azure kubernetes service. > JSONDecodeError > --- > > Key: RANGER-3668 > URL: https://issues.apache.org/jira/browse/RANGER-3668 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 2.2.0 > Environment: ranger is hosted on azure k8s service, im trying to > connect to it using apache-ranger python library >Reporter: Jeevan p >Priority: Major > Labels: JSON, apache-ranger, python > > {code:java} > from trino.dbapi import connect > from
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1071104503 idk if this helps but what i found is the error remains the same even with wrong user and pass, but if i change the host or port then it gives a diff error(max retries exeeded) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1071060114 hey i created the issue but i dont think anyones ever gonna reply :( -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Updated] (RANGER-3668) JSONDecodeError
[ https://issues.apache.org/jira/browse/RANGER-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeevan p updated RANGER-3668: - Description: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} also worth noting, i have deployed ranger on Azure kubernetes service. was: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} > JSONDecodeError > --- > > Key: RANGER-3668 > URL: https://issues.apache.org/jira/browse/RANGER-3668 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 2.2.0 > Environment: python >Reporter: Jeevan p >Priority: Major > Labels: JSON, apache-ranger, python > > {code:java} > from trino.dbapi import connect > from trino.auth import BasicAuthentication > from apache_ranger.model.ranger_service import * > from apache_ranger.client.ranger_client import * > from apache_ranger.model.ranger_policy import * > ranger_url = "http://dummy_host:; > ranger_auth = ("dummy_user",
[jira] [Created] (RANGER-3670) Policy update creates unnecessary entries in transaction log table
Madhan Neethiraj created RANGER-3670: Summary: Policy update creates unnecessary entries in transaction log table Key: RANGER-3670 URL: https://issues.apache.org/jira/browse/RANGER-3670 Project: Ranger Issue Type: Bug Components: Ranger Affects Versions: 2.2.0 Reporter: Madhan Neethiraj When a policy is updated, Ranger creates entries in x_trx_log table for each updated field in the policy. For example, when a policy is disabled, following record is added in this table: ||object_id||object_name||attr_name||prev_val||new_val|| |6|all - database|Policy Status|true|false| Following 2 additional records are added in this table even though these fields are not updated in the policy: ||object_id||object_name||attr_name||prev_val||new_val|| |6|all - database|Validity Schedules|[]|[]| |6|all - database|Policy Conditions| | | Above entries should be avoided. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Created] (RANGER-3669) Connection to DB fails for MySQL version above 8.0
Vishal Suvagia created RANGER-3669: -- Summary: Connection to DB fails for MySQL version above 8.0 Key: RANGER-3669 URL: https://issues.apache.org/jira/browse/RANGER-3669 Project: Ranger Issue Type: Improvement Components: kms Affects Versions: 3.0.0 Reporter: Vishal Suvagia Assignee: Vishal Suvagia Observed that Ranger KMS DB setup fails when using with MySQL version above 8.0. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (RANGER-3668) JSONDecodeError
[ https://issues.apache.org/jira/browse/RANGER-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeevan p updated RANGER-3668: - Description: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} was: {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host.:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} > JSONDecodeError > --- > > Key: RANGER-3668 > URL: https://issues.apache.org/jira/browse/RANGER-3668 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 2.2.0 > Environment: python >Reporter: Jeevan p >Priority: Major > Labels: JSON, apache-ranger, python > > {code:java} > from trino.dbapi import connect > from trino.auth import BasicAuthentication > from apache_ranger.model.ranger_service import * > from apache_ranger.client.ranger_client import * > from apache_ranger.model.ranger_policy import * > ranger_url = "http://dummy_host:; > ranger_auth = ("dummy_user", "dummy_pass") > ranger = RangerClient(ranger_url, ranger_auth) > for
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070620836 Thanks i have created an issue :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Created] (RANGER-3668) JSONDecodeError
Jeevan p created RANGER-3668: Summary: JSONDecodeError Key: RANGER-3668 URL: https://issues.apache.org/jira/browse/RANGER-3668 Project: Ranger Issue Type: Bug Components: Ranger Affects Versions: 2.2.0 Environment: python Reporter: Jeevan p {code:java} from trino.dbapi import connect from trino.auth import BasicAuthentication from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://dummy_host.:; ranger_auth = ("dummy_user", "dummy_pass") ranger = RangerClient(ranger_url, ranger_auth) for role in ranger.find_roles(): print(str(role.id)) {code} when i try to run the above code i get the below error {code:java} Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 17, in for role in ranger.find_roles(): File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 254, in find_roles resp = self.__call_api(RangerClient.FIND_ROLES, filter) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 334, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)
[GitHub] [ranger] yungParrot commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
yungParrot commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070596729 @JeevansSP hmmm I see that there is no issue tab on github so maybe you could [look on Jira?](https://issues.apache.org/jira/projects/RANGER/issues/) 樂 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070582352 how do i create a new issue? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP edited a comment on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP edited a comment on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070548466 about the python client it is the latest one i just did a pip install i used a helm chart which i have deployed to my k8s cluster have been trying to debug it for weeks now i tried this too https://github.com/apache/ranger/commit/e1ec22406b915e5930ead8ef79128d74122d2c7e but it did not work -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] yungParrot commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
yungParrot commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070568807 @JeevansSP if it's the latest version then I would just create a new issue... good luck 鸞 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP edited a comment on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP edited a comment on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070548466 about the python client it is the latest one i just did a pip install so this the link to my helm chart which i have deployed https://raw.githubusercontent.com/starburstdata/starburst-deploy/main/helm/ranger.yaml i have been trying to debug it for weeks now i tried this too https://github.com/apache/ranger/commit/e1ec22406b915e5930ead8ef79128d74122d2c7e but it did not work -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070548466 about the python client it is the latest one i just did a pip install so this the link to my helm chart which i have deployed https://raw.githubusercontent.com/starburstdata/starburst-deploy/main/helm/ranger.yaml i have been trying to debug it for weeks now -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] yungParrot commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
yungParrot commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070544626 @JeevansSP its hard to tell what causes this problem... what version of ranger are you using? maybe an older version which doesn't have this issue fixed? if it still occurs you should probably create a new issue 樂 --- btw when formating your code with ``` you can specify the syntax highlighting e.g. ```python so this: ``` x = 123 print(x) ``` will look like this: ```python x = 123 print(x) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP edited a comment on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP edited a comment on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070530577 also for the code given by @mateusz-szczesny , your workaround did not work :( kindly help -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP edited a comment on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP edited a comment on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070530577 also for the code given by @mateusz-szczesny , adding a forward slash does not work :( kindly help i tried your workaround but it does not work -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070530577 also for the code given by @mateusz-szczesny , adding a forward slash does not work :( kindly help -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070524748 @mateusz-szczesny can you kindly look into this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP edited a comment on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP edited a comment on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070523172 ``` from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://***.com:/; ranger_auth = ("***", "**") ranger = RangerClient(ranger_url, ranger_auth) policy = RangerPolicy() policy.service = "starburst-enterprise" policy.name = "test_policy" policy.resources = { "database": RangerPolicyResource({ "values": ["hive"] }), "schema": RangerPolicyResource({"values":["data_mesh"]}), "table":RangerPolicyResource({ "values": ["uber_rides"] }), "column": RangerPolicyResource({ "values": ["*"] }) } allowItem1 = RangerPolicyItem() allowItem1.groups = [ "Data Consumer" ] allowItem1.accesses = [ RangerPolicyItemAccess({ "type": "select" }) ] denyItem1 = RangerPolicyItem() denyItem1.groups= [ "Data Consumer" ] denyItem1.accesses = [ RangerPolicyItemAccess({ "type": "drop" }) ] policy.policyItems = [ allowItem1 ] policy.denyPolicyItems = [ denyItem1 ] print('Creating policy: name=' + policy.name) created_policy = ranger.create_policy(policy) print('created policy: name=' + created_policy.name + ', id=' + str(created_policy.id)) ``` Hello, my Code works fine upto line 9 with or without the leading slash but anytime i try to create a policy, service etc , anything that requires a JSON file i get this error ` Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 38, in created_policy = ranger.create_policy(policy) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 124, in create_policy resp = self.__call_api(RangerClient.CREATE_POLICY, params, policy) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 333, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)` Can someone please help me out? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] JeevansSP commented on pull request #111: Parse URL using urlib.parse or urlparse instead of os package
JeevansSP commented on pull request #111: URL: https://github.com/apache/ranger/pull/111#issuecomment-1070523172 `from apache_ranger.model.ranger_service import * from apache_ranger.client.ranger_client import * from apache_ranger.model.ranger_policy import * ranger_url = "http://***.com:/; ranger_auth = ("*", "**") ranger = RangerClient(ranger_url, ranger_auth) policy = RangerPolicy() policy.service = "starburst-enterprise" policy.name = "test_policy" policy.resources = { "database": RangerPolicyResource({ "values": ["hive"] }), "schema": RangerPolicyResource({"values":["data_mesh"]}), "table":RangerPolicyResource({ "values": ["uber_rides"] }), "column": RangerPolicyResource({ "values": ["*"] }) } allowItem1 = RangerPolicyItem() allowItem1.groups = [ "Data Consumer" ] allowItem1.accesses = [ RangerPolicyItemAccess({ "type": "select" }) ] denyItem1 = RangerPolicyItem() denyItem1.groups= [ "Data Consumer" ] denyItem1.accesses = [ RangerPolicyItemAccess({ "type": "drop" }) ] policy.policyItems = [ allowItem1 ] policy.denyPolicyItems = [ denyItem1 ] print('Creating policy: name=' + policy.name) created_policy = ranger.create_policy(policy) print('created policy: name=' + created_policy.name + ', id=' + str(created_policy.id)) ` Hello, my Code works fine upto line 9 with or without the leading slash but anytime i try to create a policy, service etc , anything that requires a JSON file i get this error ` Traceback (most recent call last): File "c:\Users\j.shimoga.prakash\Desktop\pls work - Copy\test.py", line 38, in created_policy = ranger.create_policy(policy) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 124, in create_policy resp = self.__call_api(RangerClient.CREATE_POLICY, params, policy) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\client\ranger_client.py", line 333, in __call_api raise RangerServiceException(api, response) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\apache_ranger\exceptions.py", line 39, in __init__ respJson = response.json() File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\__init__.py", line 525, in loads return _default_decoder.decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "C:\Users\j.shimoga.prakash\Desktop\pls work - Copy\venv\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)` Can someone please help me out? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[jira] [Commented] (RANGER-3231) Ranger should use kafka Authorizer from KIP-504
[ https://issues.apache.org/jira/browse/RANGER-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17508020#comment-17508020 ] Andras Katona commented on RANGER-3231: --- That's strange, could you download again the patch and recompile and try again? I've improved the logging a bit, if you could attach the logs, I can help investigate. > Ranger should use kafka Authorizer from KIP-504 > --- > > Key: RANGER-3231 > URL: https://issues.apache.org/jira/browse/RANGER-3231 > Project: Ranger > Issue Type: Improvement > Components: plugins >Reporter: Ismael Juma >Assignee: Andras Katona >Priority: Major > Time Spent: 1h 40m > Remaining Estimate: 0h > > As described in the KIP, `org.apache.kafka.server.authorizer.Authorizer` is > an improvement over `kafka.security.auth.Authorizer` and it's a pure Java > interface (instead of Scala). > `kafka.security.auth.Authorizer` has been deprecated since December 2019 and > it will be removed in Apache Kafka 3.0 (roughly planned for July/August). > See the KIP for more details: > https://cwiki.apache.org/confluence/display/KAFKA/KIP-504+-+Add+new+Java+Authorizer+Interface -- This message was sent by Atlassian Jira (v8.20.1#820001)
[GitHub] [ranger] akatona84 edited a comment on pull request #133: RANGER-3231: Ranger-Kafka-Plugin implementing Kafka Authorizer from KIP-504
akatona84 edited a comment on pull request #133: URL: https://github.com/apache/ranger/pull/133#issuecomment-1070450363 rebased, maybe CI will succeed now -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [ranger] akatona84 commented on pull request #133: RANGER-3231: Ranger-Kafka-Plugin implementing Kafka Authorizer from KIP-504
akatona84 commented on pull request #133: URL: https://github.com/apache/ranger/pull/133#issuecomment-1070450363 rabased, maybe CI will succeed now -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org