Skip to content

Commit 671c33b

Browse files
committed
[SPARK-49403] Add log4j2 default setting to values.yaml
### What changes were proposed in this pull request? This PR aims to add `log4j2` default setting to `values.yaml`. ### Why are the changes needed? To show INFO log by default and allow users override this. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual review. ``` $ kubectl logs -f spark-kubernetes-operator-546b54d5c-d5b49 Starting Operator... WARNING: Runtime environment or build system does not support multi-release JARs. This will impact location-based features. 24/08/27 07:09:02 INFO SparkOperator: Configuring operator with 50 reconciliation threads. 24/08/27 07:09:02 INFO SparkOperator: Adding Operator JosdkMetrics to metrics system. ... ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#110 from dongjoon-hyun/SPARK-49403. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 3216ba9 commit 671c33b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-tools/helm/spark-kubernetes-operator/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ operatorConfiguration:
167167
append: true
168168
log4j2.properties: |+
169169
# Logging Overrides
170-
# rootLogger.level=DEBUG
170+
rootLogger.level=INFO
171+
rootLogger.appenderRef.stdout.ref = console
172+
appender.console.type = Console
173+
appender.console.name = console
174+
appender.console.target = SYSTEM_ERR
175+
appender.console.layout.type = PatternLayout
176+
appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n%ex
171177
spark-operator.properties: |+
172178
# Property Overrides. e.g.
173179
# spark.kubernetes.operator.reconciler.intervalSeconds=60

0 commit comments

Comments
 (0)