Hey, which Flink version are you using? Where exactly are you seeing the "Log file environment variable 'log.file' is not set." message? Can you post some context around it? (is this shown from the command line? what are the arguments? is it shown in a file?
Usually, the "log.file" property is used to pass the name of the log file into the log4j configuration. If this property is not set, I have to assume that you are using modified or custom scripts, or you are executing Flink in an environment that fails to set the property. When running Flink on YARN, the JobManager logs are stored on the machine running the JobManager. The logs accessible through "yarn logs" are the same as you would see in the JM interface. Best, Robert On Sun, Mar 29, 2020 at 11:22 PM Vitaliy Semochkin <vitaliy...@gmail.com> wrote: > Hello Yun, > > I see this error reported by: > *org.apache.flink.runtime.webmonitor.WebMonitorUtils* - *JobManager log > files are unavailable in the web dashboard. Log file location not found in > environment variable 'log.file' or configuration key 'Key: 'web.log.path' , > default: null (fallback keys: [{key=jobmanager.web.log.path, > isDeprecated=true}])'.* > > I wonder where the JobManager files are stored in case running on a YARN > cluster? > Are these logs same to those I get via yarn logs -applicationId? > > Regards, > Vitaliy > > > > On Sun, Mar 29, 2020 at 8:24 PM Yun Tang <myas...@live.com> wrote: > >> Hi Vitaliy >> >> Property of 'log.file' would be configured if you have uploaded >> 'logback.xml' or 'log4j.properties' [1]. >> The file would contain logs of job manager or task manager which is >> decided by the component itself. And as you can see, this is only a local >> file path, I am afraid this cannot understand hdfs paths. >> >> >> [1] >> https://github.com/apache/flink/blob/ae3b0ff80b93a83a358ab474060473863d2c30d6/flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/BootstrapTools.java#L420 >> >> Best >> Yun Tang >> ------------------------------ >> *From:* Vitaliy Semochkin <vitaliy...@gmail.com> >> *Sent:* Sunday, March 29, 2020 4:32 >> *To:* user <user@flink.apache.org> >> *Subject:* Log file environment variable 'log.file' is not set. >> >> Hi, >> >> When I launch Flink Application Cluster I keep getting a message >> " Log file environment variable 'log.file' is not set." >> >> I use console logging via log4j >> and I read logs via yarn logs -applicationId .... >> >> What's the purpose of log.file property? >> What this file will contain and on which host should I search for the log? >> Does this property understands hdfs paths? >> >> Regards, >> Vitaliy >> >