| { | |
| "id": 1, | |
| "isEnabled": true, | |
| "version": 1, | |
| "name": "hdfs_{random_str}", | |
| "displayName": "hdfs_{random_str}", | |
| "implClass": "org.apache.ranger.services.hdfs.RangerServiceHdfs", | |
| "label": "HDFS Repository", | |
| "description": "HDFS Repository", | |
| "options": { | |
| "enableDenyAndExceptionsInPolicies": "true" | |
| }, | |
| "configs": [ | |
| { | |
| "itemId": 1, | |
| "name": "username", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": true, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "label": "Username" | |
| }, | |
| { | |
| "itemId": 2, | |
| "name": "password", | |
| "type": "password", | |
| "subType": "", | |
| "mandatory": true, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Password" | |
| }, | |
| { | |
| "itemId": 3, | |
| "name": "fs.default.name", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": true, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "{\"TextFieldWithIcon\":true, \"info\": \"1.For one Namenode Url, eg.<br>hdfs://<host>:<port><br>2.For HA Namenode Urls(use , delimiter), eg.<br>hdfs://<host>:<port>,hdfs://<host2>:<port2><br>\"}", | |
| "label": "Namenode URL" | |
| }, | |
| { | |
| "itemId": 4, | |
| "name": "hadoop.security.authorization", | |
| "type": "bool", | |
| "subType": "YesTrue:NoFalse", | |
| "mandatory": true, | |
| "defaultValue": "false", | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Authorization Enabled" | |
| }, | |
| { | |
| "itemId": 5, | |
| "name": "hadoop.security.authentication", | |
| "type": "enum", | |
| "subType": "authnType", | |
| "mandatory": true, | |
| "defaultValue": "simple", | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Authentication Type" | |
| }, | |
| { | |
| "itemId": 6, | |
| "name": "hadoop.security.auth_to_local", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "" | |
| }, | |
| { | |
| "itemId": 7, | |
| "name": "dfs.datanode.kerberos.principal", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "" | |
| }, | |
| { | |
| "itemId": 8, | |
| "name": "dfs.namenode.kerberos.principal", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "" | |
| }, | |
| { | |
| "itemId": 9, | |
| "name": "dfs.secondary.namenode.kerberos.principal", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "" | |
| }, | |
| { | |
| "itemId": 10, | |
| "name": "hadoop.rpc.protection", | |
| "type": "enum", | |
| "subType": "rpcProtection", | |
| "mandatory": false, | |
| "defaultValue": "authentication", | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "RPC Protection Type" | |
| }, | |
| { | |
| "itemId": 11, | |
| "name": "commonNameForCertificate", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Common Name for Certificate" | |
| }, | |
| { | |
| "itemId": 12, | |
| "name": "ranger.plugin.audit.filters", | |
| "type": "string", | |
| "subType": "", | |
| "mandatory": false, | |
| "defaultValue": "[{'accessResult': 'DENIED', 'isAudited': true}, {'actions':['delete','rename'],'isAudited':true}, {'users':['hdfs'], 'actions': ['listStatus', 'getfileinfo', 'listCachePools', 'listCacheDirectives', 'listCorruptFileBlocks', 'monitorHealth', 'rollEditLog', 'open'], 'isAudited': false}, {'users': ['oozie'],'resources': {'path': {'values': ['/user/oozie/share/lib'],'isRecursive': true}},'isAudited': false},{'users': ['spark'],'resources': {'path': {'values': ['/user/spark/applicationHistory'],'isRecursive': true}},'isAudited': false},{'users': ['hue'],'resources': {'path': {'values': ['/user/hue'],'isRecursive': true}},'isAudited': false},{'users': ['hbase'],'resources': {'path': {'values': ['/hbase'],'isRecursive': true}},'isAudited': false},{'users': ['mapred'],'resources': {'path': {'values': ['/user/history'],'isRecursive': true}},'isAudited': false}, {'actions': ['getfileinfo'], 'isAudited':false} ]", | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Ranger Default Audit Filters" | |
| } | |
| ], | |
| "resources": [ | |
| { | |
| "itemId": 1, | |
| "name": "path", | |
| "type": "path", | |
| "level": 10, | |
| "parent": "", | |
| "mandatory": true, | |
| "lookupSupported": true, | |
| "recursiveSupported": true, | |
| "excludesSupported": false, | |
| "matcher": "org.apache.ranger.plugin.resourcematcher.RangerPathResourceMatcher", | |
| "matcherOptions": { | |
| "wildCard": "true", | |
| "ignoreCase": "false" | |
| }, | |
| "validationRegEx": "", | |
| "validationMessage": "", | |
| "uiHint": "", | |
| "label": "Resource Path", | |
| "description": "HDFS file or directory path", | |
| "accessTypeRestrictions": [], | |
| "isValidLeaf": true | |
| } | |
| ], | |
| "accessTypes": [ | |
| { | |
| "itemId": 1, | |
| "name": "read", | |
| "label": "Read", | |
| "impliedGrants": [] | |
| }, | |
| { | |
| "itemId": 2, | |
| "name": "write", | |
| "label": "Write", | |
| "impliedGrants": [] | |
| }, | |
| { | |
| "itemId": 3, | |
| "name": "execute", | |
| "label": "Execute", | |
| "impliedGrants": [] | |
| } | |
| ], | |
| "policyConditions": [], | |
| "contextEnrichers": [], | |
| "enums": [ | |
| { | |
| "itemId": 1, | |
| "name": "authnType", | |
| "elements": [ | |
| { | |
| "itemId": 1, | |
| "name": "simple", | |
| "label": "Simple" | |
| }, | |
| { | |
| "itemId": 2, | |
| "name": "kerberos", | |
| "label": "Kerberos" | |
| } | |
| ], | |
| "defaultIndex": 0 | |
| }, | |
| { | |
| "itemId": 2, | |
| "name": "rpcProtection", | |
| "elements": [ | |
| { | |
| "itemId": 1, | |
| "name": "authentication", | |
| "label": "Authentication" | |
| }, | |
| { | |
| "itemId": 2, | |
| "name": "integrity", | |
| "label": "Integrity" | |
| }, | |
| { | |
| "itemId": 3, | |
| "name": "privacy", | |
| "label": "Privacy" | |
| } | |
| ], | |
| "defaultIndex": 0 | |
| } | |
| ], | |
| "dataMaskDef": { | |
| "maskTypes": [], | |
| "accessTypes": [], | |
| "resources": [] | |
| }, | |
| "rowFilterDef": { | |
| "accessTypes": [], | |
| "resources": [] | |
| } | |
| } |