[
https://issues.apache.org/jira/browse/FLINK-19768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17221233#comment-17221233
]
YUJIANBO commented on FLINK-19768:
----------------------------------
Thank you for your reply!
I try it, but it doesn't work, maybe you can give some advice.
My Test:
First, I copy log4j.properties on another path and modify a parameter:
"logger.flink.name = org.apache.flink" to "logger.flink.name
=SomeTaskName.flink"
Second, I add (-yD
env.java.opts="-Dlog4j.configurationFile=file:/home/yujianbo/log4j.properties")
to my flink-run shell, but the web shows the log4j.properties‘s path is
"flink/conf" not customized path, so I failed on Official documents’s advice
"using the -Dlog4j.configurationFile= parameter to the JVM".
(My flink run shell is: /usr/local/flink-1.11.2/bin/flink run -m yarn-cluster
-ytm 4096 -ys 1 -ynm AnalysisLogOfRankingTask -p 1 -yD
env.java.opts="-Dlog4j.configurationFile=file:/home/yujianbo/log4j.properties"
-c com.xm4399.yhzx.tasks.AnalysisLogOfRankingTask
ad_analysis_log-1.0-SNAPSHOT.jar)
Third, my flink-conf.yaml doesn't defined log4j.properties‘s path.
> The shell "./yarn-session.sh " not use log4j-session.properties , it use
> log4j.properties
> ------------------------------------------------------------------------------------------
>
> Key: FLINK-19768
> URL: https://issues.apache.org/jira/browse/FLINK-19768
> Project: Flink
> Issue Type: Bug
> Components: Client / Job Submission, Deployment / YARN
> Affects Versions: 1.11.2
> Reporter: YUJIANBO
> Priority: Major
>
> The shell "./yarn-session.sh " not use log4j-session.properties , it use
> log4j.properties
> My Flink Job UI shows the $internal.yarn.log-config-file is
> "/usr/local/flink-1.11.2/conf/log4j.properties", is it a bug?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)