Abhay Kulkarni created RANGER-4609:
--------------------------------------

             Summary: Support in File-based Tag Retriever to provide tag-deltas
                 Key: RANGER-4609
                 URL: https://issues.apache.org/jira/browse/RANGER-4609
             Project: Ranger
          Issue Type: Improvement
          Components: Ranger
            Reporter: Abhay Kulkarni
            Assignee: Abhay Kulkarni


As a part of test infrastructure, a file-based tag retriever class is created. 
When the TagEnricher is configured with this class, a plugin gets the tag from 
the configured file.

Please refer to the Service-definition for tag for tagRetrieverClassName in 
enricherOptions.

If the value of this option is set to 

org.apache.ranger.plugin.contextenricher.RangerFileBasedTagRetriever

then, the tags will be fetched for a file named by the value of the enricher 
option 

"serviceTagsFileName".
{code:java}
"contextEnrichers":[
{
"itemId": 1,
"name" : "TagEnricher",
"enricher" : "org.apache.ranger.plugin.contextenricher.RangerTagEnricher",
"enricherOptions" : {
"tagRetrieverClassName": 
"org.apache.ranger.plugin.contextenricher.RangerAdminTagRetriever",
"tagRefresherPollingInterval": 60000
}
}]{code}
This enhancement supports specifying another enricher option "tagFileCount". 
When this is set to a value greater than 0, each successive call made to fetch 
tags will provide tags from the file name obtained by adding a suffix [0.. 
tagFileCount-1].json to the file named by the option "serviceTagsFileName". 
When tag-delta files are set up with appropriate suffixes, this simulates the 
fetching of successive tag-deltas for processing.



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

Reply via email to