Exemple #1
0
def run(configfile):
    """
    This method is called after initializing the framework and starts the configured servers.
    @param configfile: Path referring to the xml configfile.
    """
    logger.debug('run() method started!')
    for role in config.get_roles(configfile):
        process = Process(target=role)
        print('Starting Process!')
        process.start()
    logger.debug('run() is done!')
Exemple #2
0
def main(config):
  check_mem()
  if 'DATANODE' in get_roles(config, socket.gethostname()):
    check_dn_disks(config)