dongjoon-hyun opened a new pull request #25072: [SPARK-28294][CORE] Support 
`spark.history.fs.cleaner.maxNum` configuration
URL: https://github.com/apache/spark/pull/25072
 
 
   ## What changes were proposed in this pull request?
   
   Up to now, Apache Spark maintains the given event log directory by **time** 
policy, `spark.history.fs.cleaner.maxAge`. However, there are two issues.
   1. Some file system has a limitation on the maximum number of files in a 
single directory. For example, HDFS 
`dfs.namenode.fs-limits.max-directory-items` is 1024 * 1024 by default.
   
https://hadoop.apache.org/docs/r3.2.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml
   2. Spark is sometimes unable to to clean up some old log files due to 
permission issues (mainly, security policy).
   
   To handle both (1) and (2), this PR aims to support an additional policy 
configuration for the maximum number of files in the event log directory, 
`spark.history.fs.cleaner.maxNum`. Spark will try to keep the number of files 
in the event log directory according to this policy.
   
   ## How was this patch tested?
   
   Pass the Jenkins with a newly added test case.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to