Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-06-2017 11:58 AM
The Create Policy Json request example given for HDFS and Hive seems to be incorrect. This applies to both 2.4 and 2.5 documentation.
1) The HDFS example request json lists "SELECT", "UPDATE" .. as permissions for hdfs resources which is wrong. HDFS resources has only "read","write","execute".. as allowed permissions.
2) The Hive example request json lists "Select", "Update"... as permissions with uppercase starting letter. This is not working. It works only when these are given in all lower case like "select", "update"...
Created 03-06-2017 12:31 PM
Naveen Kumar Mahadevuni you first point is valid, example for hdfs and hive seems to be wrong ,thanks for pointing it out, our documentation team will fix it soon.
but I tried the second point you mentioned , passing uppercase starting letter in input json and it worked for me.
{
"allowExceptions": [],
"denyExceptions": [],
"denyPolicyItems": [
{
"accesses": [
{
"isAllowed": true,
"type": "drop"
}
],
"conditions": [],
"delegateAdmin": true,
"groups": [],
"users": [
"user1"
]
}
],
"description": "Policy for Service: cl1_test",
"isAuditEnabled": true,
"isEnabled": true,
"name": "cl1_test-3",
"policyItems": [
{
"accesses": [
{
"isAllowed": true,
"type": "Select"
},
{
"isAllowed": true,
"type": "Update"
},
{
"isAllowed": true,
"type": "Create"
},
{
"isAllowed": true,
"type": "Drop"
}
],
"conditions": [],
"delegateAdmin": true,
"groups": ["public"],
"users": [
]
}
],
"resources": {
"database": {
"isExcludes": false,
"isRecursive": false,
"values": [
"abcd"
]
},
"table": {
"isExcludes": false,
"isRecursive": false,
"values": [
"*"
]
},
"column": {
"isExcludes": false,
"isRecursive": false,
"values": [
"*"
]
}
},
"service": "hive_repo",
"version": 1
}can you please make sure you are using public v2 apis , and for time being following wiki will help you in ranger rest api calls:
Created 03-06-2017 12:31 PM
Naveen Kumar Mahadevuni you first point is valid, example for hdfs and hive seems to be wrong ,thanks for pointing it out, our documentation team will fix it soon.
but I tried the second point you mentioned , passing uppercase starting letter in input json and it worked for me.
{
"allowExceptions": [],
"denyExceptions": [],
"denyPolicyItems": [
{
"accesses": [
{
"isAllowed": true,
"type": "drop"
}
],
"conditions": [],
"delegateAdmin": true,
"groups": [],
"users": [
"user1"
]
}
],
"description": "Policy for Service: cl1_test",
"isAuditEnabled": true,
"isEnabled": true,
"name": "cl1_test-3",
"policyItems": [
{
"accesses": [
{
"isAllowed": true,
"type": "Select"
},
{
"isAllowed": true,
"type": "Update"
},
{
"isAllowed": true,
"type": "Create"
},
{
"isAllowed": true,
"type": "Drop"
}
],
"conditions": [],
"delegateAdmin": true,
"groups": ["public"],
"users": [
]
}
],
"resources": {
"database": {
"isExcludes": false,
"isRecursive": false,
"values": [
"abcd"
]
},
"table": {
"isExcludes": false,
"isRecursive": false,
"values": [
"*"
]
},
"column": {
"isExcludes": false,
"isRecursive": false,
"values": [
"*"
]
}
},
"service": "hive_repo",
"version": 1
}can you please make sure you are using public v2 apis , and for time being following wiki will help you in ranger rest api calls:
Created 03-06-2017 12:49 PM
Thanks @Deepak Sharma. We are using HDP 2.4. Documentation has no mention of v2 api.
Created 03-06-2017 03:35 PM
Thanks @Naveen Kumar Mahadevuni & @Deepak Sharma, we will update the docs ASAP.