Skip to content

Commit ac946e2

Browse files
committed
Add SHS clean-up configuration
1 parent 241ce46 commit ac946e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/spark-history-server.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ spec:
2525
spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
2626
spark.kubernetes.container.image: "apache/spark:4.0.0-java21-scala"
2727
spark.history.fs.logDirectory: "s3a://spark-events"
28+
spark.history.fs.cleaner.enabled: "true"
29+
spark.history.fs.cleaner.maxAge: "30d"
30+
spark.history.fs.cleaner.maxNum: "100"
31+
spark.history.fs.eventLog.rolling.maxFilesToRetain: "10"
2832
spark.hadoop.fs.defaultFS: "s3a://spark-events"
2933
spark.hadoop.fs.s3a.endpoint: "http://localstack:4566"
3034
spark.hadoop.fs.s3a.path.style.access: "true"

0 commit comments

Comments
 (0)