@Internal public abstract class AbstractPythonEnvironmentManager extends Object implements PythonEnvironmentManager
限定符和类型 | 类和说明 |
---|---|
static class |
AbstractPythonEnvironmentManager.PythonLeasedResource
Python lease resource which includes environment variables and working directory of execution
python environment.
|
限定符和类型 | 字段和说明 |
---|---|
protected PythonDependencyInfo |
dependencyInfo |
static String |
PYFLINK_GATEWAY_DISABLED |
static String |
PYTHON_ARCHIVES_DIR |
static String |
PYTHON_FILES_DIR |
static String |
PYTHON_REQUIREMENTS_CACHE |
static String |
PYTHON_REQUIREMENTS_DIR |
static String |
PYTHON_REQUIREMENTS_FILE |
static String |
PYTHON_REQUIREMENTS_INSTALL_DIR |
static String |
PYTHON_WORKING_DIR |
protected AbstractPythonEnvironmentManager.PythonLeasedResource |
resource |
构造器和说明 |
---|
AbstractPythonEnvironmentManager(PythonDependencyInfo dependencyInfo,
String[] tmpDirectories,
Map<String,String> systemEnv,
org.apache.flink.api.common.JobID jobID) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
Map<String,String> |
constructEnvironmentVariables(String baseDirectory)
Constructs the environment variables which is used to launch the python UDF worker.
|
String |
getBaseDirectory() |
Map<String,String> |
getPythonEnv() |
void |
open()
Initialize the environment manager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEnvironment
protected transient AbstractPythonEnvironmentManager.PythonLeasedResource resource
protected final PythonDependencyInfo dependencyInfo
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_DIR
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_FILE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_CACHE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_INSTALL_DIR
public AbstractPythonEnvironmentManager(PythonDependencyInfo dependencyInfo, String[] tmpDirectories, Map<String,String> systemEnv, org.apache.flink.api.common.JobID jobID)
public void open() throws Exception
PythonEnvironmentManager
open
在接口中 PythonEnvironmentManager
Exception
public void close() throws Exception
close
在接口中 AutoCloseable
Exception
@VisibleForTesting public String getBaseDirectory()
@VisibleForTesting public Map<String,String> constructEnvironmentVariables(String baseDirectory) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.