def start_cluster(self, cluster): nn = vu.get_namenode(cluster) run.format_namenode(nn) run.start_hadoop_process(nn, 'namenode') for snn in vu.get_secondarynamenodes(cluster): run.start_hadoop_process(snn, 'secondarynamenode') rm = vu.get_resourcemanager(cluster) if rm: run.start_yarn_process(rm, 'resourcemanager') run.start_dn_nm_processes(utils.get_instances(cluster)) run.await_datanodes(cluster) hs = vu.get_historyserver(cluster) if hs: run.start_historyserver(hs) oo = vu.get_oozie(cluster) if oo: run.start_oozie_process(self.pctx, oo) hiveserver = vu.get_hiveserver(cluster) if hiveserver: run.start_hiveserver_process(self.pctx, hiveserver) self._set_cluster_info(cluster)
def start_cluster(self, cluster): nn = vu.get_namenode(cluster) run.format_namenode(nn) run.start_hadoop_process(nn, 'namenode') for snn in vu.get_secondarynamenodes(cluster): run.start_hadoop_process(snn, 'secondarynamenode') rm = vu.get_resourcemanager(cluster) if rm: run.start_yarn_process(rm, 'resourcemanager') run.start_all_processes(utils.get_instances(cluster), ['datanode', 'nodemanager']) run.await_datanodes(cluster) hs = vu.get_historyserver(cluster) if hs: run.start_historyserver(hs) oo = vu.get_oozie(cluster) if oo: run.start_oozie_process(self.pctx, oo) hiveserver = vu.get_hiveserver(cluster) if hiveserver: run.start_hiveserver_process(self.pctx, hiveserver) self._set_cluster_info(cluster)
def start_cluster(self, cluster): nn = vu.get_namenode(cluster) run.format_namenode(nn) run.start_hadoop_process(nn, "namenode") for snn in vu.get_secondarynamenodes(cluster): run.start_hadoop_process(snn, "secondarynamenode") rm = vu.get_resourcemanager(cluster) if rm: run.start_yarn_process(rm, "resourcemanager") for dn in vu.get_datanodes(cluster): run.start_hadoop_process(dn, "datanode") run.await_datanodes(cluster) for nm in vu.get_nodemanagers(cluster): run.start_yarn_process(nm, "nodemanager") hs = vu.get_historyserver(cluster) if hs: run.start_historyserver(hs) oo = vu.get_oozie(cluster) if oo: run.start_oozie_process(self.pctx, oo) self._set_cluster_info(cluster)
def start_historyserver(self, cluster): hs = vu.get_historyserver(cluster) if hs: run.start_historyserver(hs)
def test_start_historyserver(self, add_provisioning_step, check_cluster_exists): rs.start_historyserver(self.instance) self.remote.execute_command.assert_called_once_with( 'sudo su - -c "mr-jobhistory-daemon.sh start historyserver" ' + 'hadoop')