Skip to content

Commit

Permalink
Enable console logging for Glue 4.0 Spark UI Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
moomindani committed Mar 2, 2023
1 parent 3ddbbbe commit 872e82c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utilities/Spark_UI/glue-4_0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ spark.eventLog.enabled true\n\
spark.history.ui.port 18080\n\
' > /opt/spark/conf/spark-defaults.conf

RUN echo $'\n\
log4j.rootLogger = info, console\n\
log4j.appender.console=org.apache.log4j.ConsoleAppender\n\
log4j.appender.console.target = System.out\n\
log4j.appender.console.layout = org.apache.log4j.PatternLayout\n\
log4j.appender.console.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %p %c{2}: %m%n\n\
' > /opt/spark/conf/log4j.properties

ENTRYPOINT ["/bin/bash", "-c"]:

0 comments on commit 872e82c

Please sign in to comment.