public static String supervisorStormResourcesPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + RESOURCES_SUBDIR); }
public static String supervisorStormCodePath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormcode.ser"); }
public static String supervisorStormConfPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormconf.ser"); }
public static String supervisorStormJarPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormjar.jar"); }
static Process processLauncher(Map<String, Object> conf, String user, List<String> commandPrefix, List<String> args, Map<String, String> environment, final String logPreFix, final ExitCodeCallback exitCodeCallback, File dir) throws IOException { if (StringUtils.isBlank(user)) { throw new IllegalArgumentException("User cannot be blank when calling processLauncher."); } String wlinitial = (String) (conf.get(Config.SUPERVISOR_WORKER_LAUNCHER)); String stormHome = ConfigUtils.concatIfNotNull(System.getProperty(ConfigUtils.STORM_HOME)); String wl; if (StringUtils.isNotBlank(wlinitial)) { wl = wlinitial; } else { wl = stormHome + "/bin/worker-launcher"; } List<String> commands = new ArrayList<>(); if (commandPrefix != null) { commands.addAll(commandPrefix); } commands.add(wl); commands.add(user); commands.addAll(args); LOG.info("Running as user: {} command: {}", user, commands); return launchProcess(commands, environment, logPreFix, exitCodeCallback, dir); }
final String jlp) throws IOException { final String javaCmd = javaCmd("java"); final String stormOptions = ConfigUtils.concatIfNotNull(System.getProperty("storm.options")); final String topoConfFile = ConfigUtils.concatIfNotNull(System.getProperty("storm.conf.file")); final String workerTmpDir = ConfigUtils.workerTmpRoot(_conf, _workerId); String topoVersionString = getStormVersionFor(_conf, _topologyId, _ops, stormRoot);
public static String supervisorStormConfPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormconf.ser"); }
public static String supervisorStormCodePath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormcode.ser"); }
public static String supervisorStormResourcesPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + RESOURCES_SUBDIR); }
public static String supervisorStormJarPath(String stormRoot) { return (concatIfNotNull(stormRoot) + FILE_SEPARATOR + "stormjar.jar"); }
static Process processLauncher(Map<String, Object> conf, String user, List<String> commandPrefix, List<String> args, Map<String, String> environment, final String logPreFix, final ExitCodeCallback exitCodeCallback, File dir) throws IOException { if (StringUtils.isBlank(user)) { throw new IllegalArgumentException("User cannot be blank when calling processLauncher."); } String wlinitial = (String) (conf.get(Config.SUPERVISOR_WORKER_LAUNCHER)); String stormHome = ConfigUtils.concatIfNotNull(System.getProperty("storm.home")); String wl; if (StringUtils.isNotBlank(wlinitial)) { wl = wlinitial; } else { wl = stormHome + "/bin/worker-launcher"; } List<String> commands = new ArrayList<>(); if (commandPrefix != null){ commands.addAll(commandPrefix); } commands.add(wl); commands.add(user); commands.addAll(args); LOG.info("Running as user: {} command: {}", user, commands); return SupervisorUtils.launchProcess(commands, environment, logPreFix, exitCodeCallback, dir); }
final String jlp) throws IOException { final String javaCmd = javaCmd("java"); final String stormOptions = ConfigUtils.concatIfNotNull(System.getProperty("storm.options")); final String stormConfFile = ConfigUtils.concatIfNotNull(System.getProperty("storm.conf.file")); final String workerTmpDir = ConfigUtils.workerTmpRoot(_conf, _workerId);