def start_cluster(self, cluster): sm_instance = utils.get_instance(cluster, "nimbus") sl_instances = utils.get_instances(cluster, "supervisor") zk_instance = utils.get_instances(cluster, "zookeeper") if zk_instance: self._start_zookeeper_processes(zk_instance) # start storm master if sm_instance: with remote.get_remote(sm_instance) as r: run.start_storm_nimbus_and_ui(r) LOG.info(_LI("Storm master at '%s' has been started"), sm_instance.hostname()) # start storm slaves self._start_slave_processes(sl_instances) LOG.info(_LI('Cluster %s has been started successfully'), cluster.name) self._set_cluster_info(cluster)
def _start_storm_master(self, sm_instance): with remote.get_remote(sm_instance) as r: run.start_storm_nimbus_and_ui(r) LOG.info(_LI("Storm master at {host} has been started").format( host=sm_instance.hostname()))