gaborgsomogyi commented on PR #22420:
URL: https://github.com/apache/flink/pull/22420#issuecomment-1514319412

   If one wants to execute job source code `locally` together with plugins then 
I suggest the following:
   ```
       public static void main(String[] args) throws Exception {
           Configuration configuration = new Configuration();
           ...
           PluginManager pluginManager = 
PluginUtils.createPluginManagerFromRootFolder(configuration);
           FileSystem.initialize(configuration, pluginManager);
   
           StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment(configuration);
           ...
       }
   ```
   This loads the plugins in separate classloader.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to