You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "eubnara (via GitHub)" <gi...@apache.org> on 2023/05/15 23:45:35 UTC

[GitHub] [ranger] eubnara commented on a diff in pull request #255: RANGER-4236: enhance Ranger JSON audit to HDFS by compressing as gzip

eubnara commented on code in PR #255:
URL: https://github.com/apache/ranger/pull/255#discussion_r1194459122


##########
agents-audit/src/main/java/org/apache/ranger/audit/utils/AbstractRangerAuditWriter.java:
##########
@@ -121,6 +128,8 @@ public void createFileSystemFolders() throws Exception {
 
     public  Configuration createConfiguration() {
         Configuration conf = new Configuration();
+        // to close gracefully after flushing
+        conf.setBoolean("fs.hdfs.impl.disable.cache", true);

Review Comment:
   It is needed to finish writing gzip trailer when closing it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org