RANGER-4357: Consolidate configs required to enable ORC audit logs #279
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Other changes: Test cases for orc audits. Typo fix for zlib compression.
What changes were proposed in this pull request?
This is a follow up patch for RANGER-1837 and RANGER-4178 which enables audit logging in ORC format for HDFS audit destination.
The pull request has the following 3 components:
Config consolidation:
Currently there are 2 configs which will be required to enable orc i.e.
xasecure.audit.destination.hdfs.batch.filequeue.filetype=orc
and configxasecure.audit.destination.hdfs.filetype=orc
Ideally, we would want only 1 config to enable orc
xasecure.audit.destination.hdfs.batch.filequeue.filetype=orc
. Also, orc can only be enabled from filequeue, so above config seems more reasonable.Fixed a typo for zlib compression
Test cases to verify the ORC audit logs functionality and also verify the above config consolidation works as expected. The test cases also serves as configuration list requirement to enable orc audit logs
How was this patch tested?
Unit tests added to test the ORC feature including config consolidation proposed
Manual testing on cluster also done to verify the functionality
Additional documentation/configuration for reference to enable ORC audit logs (derived from one of the test cases):