/** * Updates the associated configuration with the given command line options * * @param options Command line options */ protected ClusterClient retrieveClient(CommandLineOptions options) { CustomCommandLine customCLI = getActiveCustomCommandLine(options.getCommandLine()); try { ClusterClient client = customCLI.retrieveCluster(options.getCommandLine(), config); logAndSysout("Using address " + client.getJobManagerAddress() + " to connect to JobManager."); return client; } catch (Exception e) { LOG.error("Couldn't retrieve {} cluster.", customCLI.getId(), e); throw new IllegalConfigurationException("Couldn't retrieve client for cluster", e); } }
client = activeCommandLine.retrieveCluster(options.getCommandLine(), config); logAndSysout("Cluster configuration: " + client.getClusterIdentifier()); } catch (UnsupportedOperationException e) {