def run_cloud(): cfg = Config('config.json') cfg.parse() gcp = CloudInterface(cfg.project, cfg.zone) master = Master(gcp, cfg.network_config, [], cfg.mapper_count, cfg.reducer_count, cfg.map_fn, cfg.reduce_fn, cfg.input_data, cfg.output_data) master.run()
def run_cloud(): cfg = Config('config.json') cfg.parse() worker = Worker( cfg.network_config, cfg.mapper_count, cfg.reducer_count, cfg.output_data ) print('CFG parsed and worker initialized') worker.init() worker.run()