@Internal public final class ProcessPythonEnvironmentManager extends Object implements PythonEnvironmentManager
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PYTHON_REQUIREMENTS_CACHE |
static String |
PYTHON_REQUIREMENTS_FILE |
static String |
PYTHON_REQUIREMENTS_INSTALL_DIR |
static String |
PYTHON_WORKING_DIR |
| 构造器和说明 |
|---|
ProcessPythonEnvironmentManager(PythonDependencyInfo dependencyInfo,
String[] tmpDirectories,
Map<String,String> systemEnv,
org.apache.flink.api.common.JobID jobID) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
PythonEnvironment |
createEnvironment()
Creates the PythonEnvironment object used in
PythonFunctionRunner. |
String |
createRetrievalToken()
Returns an empty RetrievalToken because no files will be transmit via ArtifactService in
process mode.
|
String |
getBootLog()
Returns the boot log of the Python Environment.
|
void |
open()
Initialize the environment manager.
|
void |
setEnvironmentVariable(String key,
String value) |
@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 ProcessPythonEnvironmentManager(@NotNull
PythonDependencyInfo dependencyInfo,
@NotNull
String[] tmpDirectories,
@NotNull
Map<String,String> systemEnv,
@NotNull
org.apache.flink.api.common.JobID jobID)
public void open()
throws Exception
PythonEnvironmentManageropen 在接口中 PythonEnvironmentManagerExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionpublic PythonEnvironment createEnvironment() throws Exception
PythonEnvironmentManagerPythonFunctionRunner.createEnvironment 在接口中 PythonEnvironmentManagerExceptionpublic String createRetrievalToken() throws IOException
createRetrievalToken 在接口中 PythonEnvironmentManagerIOExceptionpublic String getBootLog() throws Exception
PythonEnvironmentManagergetBootLog 在接口中 PythonEnvironmentManagerExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.