/** * Uploads the given jars and artifacts required for the execution of the given {@link JobGraph} using the {@link BlobClient} from * the given {@link Supplier}. * * @param jobGraph jobgraph requiring files * @param userJars jars to upload * @param userArtifacts artifacts to upload * @param clientSupplier supplier of blob client to upload files with * @throws FlinkException if the upload fails */ public static void uploadJobGraphFiles( JobGraph jobGraph, Collection<Path> userJars, Collection<Tuple2<String, org.apache.flink.core.fs.Path>> userArtifacts, SupplierWithException<BlobClient, IOException> clientSupplier) throws FlinkException { if (!userJars.isEmpty() || !userArtifacts.isEmpty()) { try (BlobClient client = clientSupplier.get()) { uploadAndSetUserJars(jobGraph, userJars, client); uploadAndSetUserArtifacts(jobGraph, userArtifacts, client); } catch (IOException ioe) { throw new FlinkException("Could not upload job files.", ioe); } } }
/** * Uploads the given jars and artifacts required for the execution of the given {@link JobGraph} using the {@link BlobClient} from * the given {@link Supplier}. * * @param jobGraph jobgraph requiring files * @param userJars jars to upload * @param userArtifacts artifacts to upload * @param clientSupplier supplier of blob client to upload files with * @throws FlinkException if the upload fails */ public static void uploadJobGraphFiles( JobGraph jobGraph, Collection<Path> userJars, Collection<Tuple2<String, org.apache.flink.core.fs.Path>> userArtifacts, SupplierWithException<BlobClient, IOException> clientSupplier) throws FlinkException { if (!userJars.isEmpty() || !userArtifacts.isEmpty()) { try (BlobClient client = clientSupplier.get()) { uploadAndSetUserJars(jobGraph, userJars, client); uploadAndSetUserArtifacts(jobGraph, userArtifacts, client); } catch (IOException ioe) { throw new FlinkException("Could not upload job files.", ioe); } } }
/** * Uploads the given jars and artifacts required for the execution of the given {@link JobGraph} using the {@link BlobClient} from * the given {@link Supplier}. * * @param jobGraph jobgraph requiring files * @param userJars jars to upload * @param userArtifacts artifacts to upload * @param clientSupplier supplier of blob client to upload files with * @throws FlinkException if the upload fails */ public static void uploadJobGraphFiles( JobGraph jobGraph, Collection<Path> userJars, Collection<Tuple2<String, org.apache.flink.core.fs.Path>> userArtifacts, SupplierWithException<BlobClient, IOException> clientSupplier) throws FlinkException { if (!userJars.isEmpty() || !userArtifacts.isEmpty()) { try (BlobClient client = clientSupplier.get()) { uploadAndSetUserJars(jobGraph, userJars, client); uploadAndSetUserArtifacts(jobGraph, userArtifacts, client); } catch (IOException ioe) { throw new FlinkException("Could not upload job files.", ioe); } } }