[ 
https://issues.apache.org/jira/browse/FLINK-14382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16954637#comment-16954637
 ] 

Piotr Nowojski commented on FLINK-14382:
----------------------------------------

Thanks for the answer [~fly_in_gis], but unfortunately I still do not 
understand the issue. As far as I understand it, the warning message you posted 
is being logged even before JobManager/TaskManager are started up in 
{{YarnClusterDescriptor#addPluginsFoldersToShipFiles}}. This code tries to 
assemble jar files from both {{lib}} AND {{plugins}} directories, to upload 
them to the TM/JM. At this stage presence of {{plugins}} directory is indeed 
optional, as users might not be using any plugins.

> Wrong local FLINK_PLUGINS_DIR is set to flink-conf.yaml of jobmanager and 
> taskmanager on Yarn
> ---------------------------------------------------------------------------------------------
>
>                 Key: FLINK-14382
>                 URL: https://issues.apache.org/jira/browse/FLINK-14382
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / YARN
>    Affects Versions: 1.9.0, 1.10.0
>            Reporter: Yang Wang
>            Priority: Major
>             Fix For: 1.10.0, 1.9.2
>
>
> If we do not set FLINK_PLUGINS_DIR in flink-conf.yaml, it will be set to 
> [flink 
> configuration|https://github.com/apache/flink/blob/9e6ff81e22d6f5f04abb50ca1aea84fd2542bf9d/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java#L158]
>  according to the environment.
> In yarn mode, the local path will be set in flink-conf.yaml and used by 
> jobmanager and taskmanager. We will find the warning log like below. 
> {code:java}
> 2019-10-12 19:24:58,165 WARN  org.apache.flink.core.plugin.PluginConfig       
>               - Environment variable [FLINK_PLUGINS_DIR] is set to 
> [/Users/wangy/IdeaProjects/apache-flink/flink-dist/target/flink-1.10-SNAPSHOT-bin/flink-1.10-SNAPSHOT/plugins]
>  but the directory doesn't exist
> {code}
> It was in introduced by FLINK-12143.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to