Class EmbeddedPythonEnvironmentManager

java.lang.Object
org.apache.flink.python.env.AbstractPythonEnvironmentManager
org.apache.flink.python.env.embedded.EmbeddedPythonEnvironmentManager
All Implemented Interfaces:
AutoCloseable, PythonEnvironmentManager

@Internal public class EmbeddedPythonEnvironmentManager extends AbstractPythonEnvironmentManager
The base class of python environment manager which is used to create the PythonEnvironment object. It's used to run python UDF in embedded Python environment.
  • Constructor Details

    • EmbeddedPythonEnvironmentManager

      public EmbeddedPythonEnvironmentManager(PythonDependencyInfo dependencyInfo, String[] tmpDirectories, Map<String,String> systemEnv, org.apache.flink.api.common.JobID jobID)
  • Method Details

    • createEnvironment

      public PythonEnvironment createEnvironment() throws Exception
      Description copied from interface: PythonEnvironmentManager
      Creates the PythonEnvironment object used to execute Python functions.
      Returns:
      The PythonEnvironment object which represents the environment(embedded thread, process, docker, etc) the python worker would run in.
      Throws:
      Exception