> On Dec. 13, 2021, 7:01 p.m., Madhan Neethiraj wrote: > > ranger-tools/scripts/create_tags_file.sh > > Lines 39 (patched) > > <https://reviews.apache.org/r/73758/diff/1/?file=2256592#file2256592line39> > > > > output_file is overwritten in each iteration inside this for ever loop > > - see #37. Is the script supposed to create a single file? If not, consider > > writing to different file in each iteration.
Updating the same file is by design. With a File-based tag upload using tagsync, without changing the configuration of tagsync - such as source-file-name, successive set of generaated tagged entities can be uploaded to Ranger. (File-Based tag-enricher will re-read the file specified in its configuration periodically and find different set of entities to upload to Ranger). - Abhay ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/73758/#review223846 ----------------------------------------------------------- On Dec. 13, 2021, 3:53 p.m., Abhay Kulkarni wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/73758/ > ----------------------------------------------------------- > > (Updated Dec. 13, 2021, 3:53 p.m.) > > > Review request for ranger. > > > Bugs: RANGER-3548 > https://issues.apache.org/jira/browse/RANGER-3548 > > > Repository: ranger > > > Description > ------- > > It is useful to have scripts to create a file containing large number of > tagged entities that can be uploaded into Ranger using file-based interface > supported by tagsync. Such scripts are useful in populating a large number of > tagged entities in Ranger for testing performance/memory characteristics of > Ranger admin and the services using Ranger as an authorizer. > > > Diffs > ----- > > distro/src/main/assembly/ranger-tools.xml 1eb9104b5 > ranger-tools/scripts/create_tags_file.sh PRE-CREATION > ranger-tools/scripts/gen_service_tags.sh 9a81a0a19 > > > Diff: https://reviews.apache.org/r/73758/diff/1/ > > > Testing > ------- > > - Created a file containing tagged hive entities > - Uploaded generated file into Ranger using tagsync's file-based interface > - Ensured that the tagged entities are downloaded to hive service > > > Thanks, > > Abhay Kulkarni > >
