Wei Liu
04/11/2024, 10:13 PM/opt/flink/conf/log4j.properties) are correctly updated:
# This affects logging for both user code and Flink
rootLogger.level = DEBUG
rootLogger.appenderRef.file.ref = MainAppender
rootLogger.appenderRef.console.ref = ConsoleAppender
appender.console.name = ConsoleAppender
appender.console.type = CONSOLE
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%name
However, when the job fails, kubectl logs ... still only shows log messages from warn and above.
I also double checked configmap of the container and I'm not seeing any other overriding log4j configs. On top of that, I've updated log4j-console.properties and log4j-session.properties and neither worked. Did anyone run into similar issue?
I'm basing my docker image off the official Flink 1.18.1 base.
Thank you for reading this far, and please let me know what I might be missing πWei Liu
04/11/2024, 10:49 PMdocker-entrypoint.sh
is necessarily relevant.
Hibernate log output is correct, and later exceptions from my flink job is correctly logged, but all log messages in between is missing.
kubectl logs -n quark data-sketch-yelp-2024-04-11-15-17-05-pdt-6758c584d5-krb4n
sed: couldn't open temporary file /opt/flink/conf/sedWxd9bW: Read-only file system
sed: couldn't open temporary file /opt/flink/conf/sedJl6nY9: Read-only file system
/docker-entrypoint.sh: line 73: /opt/flink/conf/flink-conf.yaml: Read-only file system
/docker-entrypoint.sh: line 89: /opt/flink/conf/flink-conf.yaml.tmp: Read-only file system
Starting kubernetes-application as a console application on host data-sketch-yelp-2024-04-11-15-17-05-pdt-6758c584d5-krb4n.
ERROR StatusLogger Reconfiguration failed: No configuration found for '4ccabbaa' at 'null' in 'null'
ERROR StatusLogger Reconfiguration failed: No configuration found for '1339e7aa' at 'null' in 'null'
Hibernate: drop table if exists FeatureEntity
Hibernate: drop table if exists FeatureSketchEntity
Hibernate: drop table if exists JsonSourceEntity
Hibernate: create table FeatureEntity (firstCreated bigint, lastSeen bigint, description varchar(255), entityType varchar(255) not null, featureName varchar(255) not null, origin TEXT, tenant varchar(255) not null, dataType enum ('STRING','LONG','DOUBLE','OBJECT'), primary key (entityType, featureName, tenant)) engine=InnoDB
Hibernate: create table FeatureSketchEntity (timestamp bigint not null, entityType varchar(255) not null, featureName varchar(255) not null, featureSketch TEXT, tenant varchar(255) not null, primary key (timestamp, entityType, featureName, tenant)) engine=InnoDB
Hibernate: create table JsonSourceEntity (jsonSourceSpec TEXT, tenant varchar(255) not null, topicName varchar(255) not null, primary key (tenant, topicName)) engine=InnoDB
22:19:16.349 [flink-pekko.actor.default-dispatcher-15] ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint - Fatal error occurred in the cluster entrypoint.
java.util.concurrent.CompletionException: org.apache.flink.client.deployment.application.ApplicationExecutionException: Could not execute application.
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:?]