chunjun icon indicating copy to clipboard operation
chunjun copied to clipboard

[Question][Module Name] Ask for question standalone mode cant generate log

Open iron-box-of-an-island opened this issue 2 years ago • 4 comments

Search before asking

  • [X] I had searched in the issues and found no similar question.

  • [X] I had googled my question but i didn't get any help.

  • [X] I had read the documentation: ChunJun doc but it didn't help me.

Description

According to official documents,i start the mode of standalone, but flink web ui shows this image Besides,no job will generate logs.

According to official documents, i do this: cp -r chunjun-dist $FLINK_HOME/lib, but this step is not effective.I had searched in the issues, then i copy the required jars to $FLINK_HOME/lib,but when i copy the chunjun-client.jar, the log does not work.

Code of Conduct

iron-box-of-an-island avatar Apr 18 '23 02:04 iron-box-of-an-island

chunjun version is 1.12, flink version is 1.12.7

iron-box-of-an-island avatar Apr 18 '23 02:04 iron-box-of-an-island

Flink use $FLINK_HOME/conf/log4j.properties to config log, you can modify this file like:

# This affects logging for both user code and Flink
rootLogger.level = INFO
rootLogger.appenderRef.rolling.ref = RollingFileAppender

# Uncomment this if you want to _only_ change Flink's logging
#logger.flink.name = org.apache.flink
#logger.flink.level = INFO

# The following lines keep the log level of common libraries/connectors on
# log level INFO. The root logger does not override this. You have to manually
# change the log levels here.
logger.akka.name = akka
logger.akka.level = INFO
logger.kafka.name= org.apache.kafka
logger.kafka.level = INFO
logger.hadoop.name = org.apache.hadoop
logger.hadoop.level = INFO
logger.zookeeper.name = org.apache.zookeeper
logger.zookeeper.level = INFO

# Log all infos in the given rolling file
appender.rolling.name = RollingFileAppender
appender.rolling.type = RollingFile
appender.rolling.append = false
appender.rolling.fileName = ${sys:log.file}
appender.rolling.filePattern = ${sys:log.file}.%i
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
appender.rolling.policies.type = Policies
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size = 200MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.max = 10

# Suppress the irrelevant (wrong) warnings from the Netty channel handler
logger.netty.name = org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline
logger.netty.level = OFF

lvyanquan avatar Apr 19 '23 02:04 lvyanquan

ok,i'll give it a try,thanks.

iron-box-of-an-island avatar Apr 19 '23 02:04 iron-box-of-an-island

it seems like it is not working, when i modify the log4j.properties.it still shows this and no logs image here is the jars of $FLINK_HOME/lib/ image

iron-box-of-an-island avatar Apr 19 '23 02:04 iron-box-of-an-island