Class DefaultKubernetesArtifactUploader
- java.lang.Object
-
- org.apache.flink.kubernetes.artifact.DefaultKubernetesArtifactUploader
-
- All Implemented Interfaces:
KubernetesArtifactUploader
public class DefaultKubernetesArtifactUploader extends Object implements KubernetesArtifactUploader
DefaultKubernetesArtifactUploaderimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultKubernetesArtifactUploader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiduploadAll(org.apache.flink.configuration.Configuration config)Uploads alllocal://schemed artifact that is present, according to the given configuration.
-
-
-
Method Detail
-
uploadAll
public void uploadAll(org.apache.flink.configuration.Configuration config) throws ExceptionDescription copied from interface:KubernetesArtifactUploaderUploads alllocal://schemed artifact that is present, according to the given configuration. Any remote artifact remains as it was passed originally.Takes the job JAR from the
PipelineOptions.JARSconfig and any additional artifacts from theArtifactFetchOptions.ARTIFACT_LISTconfig. After the upload, replaces the URIs of any local JAR in these configs to point to the remotely available one.Requires
KubernetesConfigOptions.LOCAL_UPLOAD_TARGETto point to a valid, existing DFS directory with read and write permissions.- Specified by:
uploadAllin interfaceKubernetesArtifactUploader- Parameters:
config- given Flink configuration- Throws:
Exception- when the upload process fails
-
-