private static void submitJar(Map conf) { if(submittedJar==null) { LOG.info("Jar not uploaded to master yet. Submitting jar..."); String localJar = System.getProperty("storm.jar"); submittedJar = submitJar(conf, localJar); } else { LOG.info("Jar already uploaded to master. Not submitting jar."); } }
submitJar(client, conf); LOG.info("Submitting topology " + name + " in distributed mode with conf " + serConf); if (opts != null) {
localNimbus.submitTopology(name, null, serConf, topology); } else { submitJar(conf); NimbusClient client = NimbusClient.getConfiguredClient(conf); try {
/** * Submit jar file * @param conf the topology-specific configuration. See {@link Config}. * @param localJar file path of the jar file to submit * @return the remote location of the submitted jar */ public static String submitJar(Map conf, String localJar) { return submitJar(conf, localJar, null); }
private static void submitJar(Map conf, ProgressListener listener) { if(submittedJar==null) { LOG.info("Jar not uploaded to master yet. Submitting jar..."); String localJar = System.getProperty("storm.jar"); submittedJar = submitJar(conf, localJar, listener); } else { LOG.info("Jar already uploaded to master. Not submitting jar."); } }
String uploadedJarLocation = StormSubmitter.submitJar(conf, topologyJarPath);
throw new RuntimeException("Topology with name `" + name + "` already exists on cluster"); submitJar(conf, progressListener); try { LOG.info("Submitting topology " + name + " in distributed mode with conf " + serConf);
submitJar(client, conf); LOG.info("Submitting topology " + name + " in distributed mode with conf " + serConf); if (opts != null) {
synchronized (toDeployTopologies) { if (isToBeDeployed()) { String uploadedJarLocation = StormSubmitter.submitJar(stormConfig, jarLocation); Nimbus.Client client = NimbusClient.getConfiguredClient(stormConfig).getClient(); client.submitTopology(topologyName, uploadedJarLocation, jsonConf, topology);