Example #1
0
def start_services(cluster, instances, disk_setup_script_path, waiting_script,
                   configure_sh_string):
    LOG.info(_LI('START: Starting services.'))
    for inst in instances:
        start_helper.exec_configure_sh_on_instance(cluster, inst,
                                                   configure_sh_string)
        start_helper.wait_for_mfs_unlock(cluster, waiting_script)
        start_helper.setup_maprfs_on_instance(inst, disk_setup_script_path)

        if check_if_is_zookeeper_node(inst):
            run_scripts.start_zookeeper(inst.remote())

        run_scripts.start_warden(inst.remote())

    if check_for_cldb_or_zookeeper_service(instances):
        start_helper.exec_configure_sh_on_cluster(cluster, configure_sh_string)
    LOG.info(_LI('END: Starting services.'))
Example #2
0
def start_services(cluster, instances, disk_setup_script_path,
                   waiting_script, configure_sh_string):
    LOG.info(_LI('START: Starting services.'))
    for inst in instances:
        start_helper.exec_configure_sh_on_instance(
            cluster, inst, configure_sh_string)
        start_helper.wait_for_mfs_unlock(cluster, waiting_script)
        start_helper.setup_maprfs_on_instance(inst, disk_setup_script_path)

        if check_if_is_zookeeper_node(inst):
            run_scripts.start_zookeeper(inst.remote())

        run_scripts.start_warden(inst.remote())

    if check_for_cldb_or_zookeeper_service(instances):
        start_helper.exec_configure_sh_on_cluster(
            cluster, configure_sh_string)
    LOG.info(_LI('END: Starting services.'))
Example #3
0
def start_warden_on_other_nodes(cluster):
    node_list = utils.get_instances(cluster)
    for node in node_list:
        if names.CLDB not in node.node_group.node_processes:
            run_scripts.start_warden(node.remote())
Example #4
0
def start_warden_on_cldb_nodes(cluster):
    node_list = utils.get_instances(cluster, names.CLDB)
    for node in node_list:
        run_scripts.start_warden(node.remote())