127128129130131132133134135136137
sshPrivateKey, hostUserId, kafkaRootDirectory, true); try { operation.execute(); } catch(RemoteOperationException e) { e.printStackTrace(); } }
145146147148149150151152153154155
kafkaConfig, kafkaLog, zkHostNames, zkPort); operation.execute(); } private Map<String, Integer> getBrokerIds(List<String> hostNames, File brokerIdFile) throws Exception { Map<String, Integer> brokerIds = new HashMap<String, Integer>();
737475767778798081
RemoteOperation operation = new SshBrokerStopper(hostNames, sshPrivateKey, hostUserId, kafkaRootDirectory, false); operation.execute(); } }