/** * Uploads the previously added user JAR files to the job manager through * the job manager's BLOB server. The respective port is retrieved from the * JobManager. This function issues a blocking call. * * @param jobManager JobManager actor gateway * @param askTimeout Ask timeout * @param blobClientConfig the blob client configuration * @throws IOException Thrown, if the file upload to the JobManager failed. */ public void uploadUserJars(ActorGateway jobManager, FiniteDuration askTimeout, Configuration blobClientConfig) throws IOException { List<BlobKey> blobKeys = BlobClient.uploadJarFiles(jobManager, askTimeout, blobClientConfig, userJars); for (BlobKey blobKey : blobKeys) { if (!userJarBlobKeys.contains(blobKey)) { userJarBlobKeys.add(blobKey); } } }
return uploadJarFiles(serverAddress, clientConfig, jars); } else { throw new Exception("Expected port number (int) as answer, received " + result);
blobKeys = BlobClient.uploadJarFiles(jobManager, clientTimeout, config, libPaths); LOG.debug("Blob keys: " + blobKeys.toString());