[ 
https://issues.apache.org/jira/browse/RANGER-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944047#comment-17944047
 ] 

Dineshkumar Yadav edited comment on RANGER-5152 at 4/14/25 5:23 AM:
--------------------------------------------------------------------

As per discussion here is solution
 # If "ranger.plugin.audit.filters" is not included in config when a service is 
created, Ranger admin will use the default value of the configuration specified 
in corresponding service-def. 
 # If no audit filters are to be created while creating a service, irrespective 
of the default value specified in the service-def, ranger.plugin.audit.filters 
config should be set to "[]" - as shown below.

{code:java}
{
  "name": "test_hive",
  "type": "hive",
  "configs": {
    "username":                    "hive",
    "password":                    "password",
    "jdbc.driverClassName":        "org.apache.hive.jdbc.HiveDriver",
    "jdbc.url":                    "jdbc:hive2://ranger-hive:10000",
    "ranger.plugin.audit.filters": "[]"
  }
}
{code}



was (Author: dineshkumar-yadav):
As per discussion here is solution
 # If "ranger.plugin.audit.filters" is not included in config when a service is 
created, Ranger admin will use the default value of the configuration specified 
in corresponding service-def. 
 # If no audit filters are to be created while creating a service, irrespective 
of the default value specified in the service-def, ranger.plugin.audit.filters 
config should be set to "[]" - as shown below.

 # 
{
  "name": "test_hive",
  "type": "hive",
  "configs": \{
    "username":                    "hive",
    "password":                    "password",
    "jdbc.driverClassName":        "org.apache.hive.jdbc.HiveDriver",
    "jdbc.url":                    "jdbc:hive2://ranger-hive:10000",
    "ranger.plugin.audit.filters": "[]"
  }
}

>  Service creates config  audit filter despite having a blank value 
> -------------------------------------------------------------------
>
>                 Key: RANGER-5152
>                 URL: https://issues.apache.org/jira/browse/RANGER-5152
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 2.6.0
>            Reporter: Dineshkumar Yadav
>            Assignee: Dineshkumar Yadav
>            Priority: Major
>
> Service Create API adds the default "ranger.plugin.audit.filters" 
> configuration despite a provided blank value.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to