public static Configuration loadConfiguration ( Configuration dynamicProperties , Logger log ) { Configuration configuration = GlobalConfiguration . loadConfigurationWithDynamicProperties ( dynamicProperties ) ; // read the environment variables final Map < String , String > envs = System . getenv ( ) ; final String tmpDirs = envs . get ( MesosConfigKeys . ENV_FLINK_TMP_DIR ) ; BootstrapTools . updateTmpDirectoriesInConfiguration ( configuration , tmpDirs ) ; return configuration ; }
Loads the global configuration adds the given dynamic properties configuration and sets the temp directory paths .