def start(self, env): from params import daemon_control_script, config_properties, \ host_info self.configure(env) Execute('{0} start'.format(daemon_control_script)) if 'presto_worker_hosts' in host_info.keys(): all_hosts = host_info['presto_worker_hosts'] + \ host_info['presto_coordinator_hosts'] else: all_hosts = host_info['presto_coordinator_hosts'] smoketest_presto(PrestoClient('localhost', 'root', config_properties['http-server.http.port']), all_hosts)
def start(self, env): from params import daemon_control_script, config_properties, \ host_info self.configure(env) Execute('{0} start'.format(daemon_control_script)) if 'presto_worker_hosts' in host_info.keys(): all_hosts = host_info['presto_worker_hosts'] + \ host_info['presto_coordinator_hosts'] else: all_hosts = host_info['presto_coordinator_hosts'] smoketest_presto( PrestoClient('localhost','root', config_properties['http-server.http.port']), all_hosts)
def start(self, env): from common import presto_launcher_script, config_properties, host_info from presto_client import PrestoClient, smoketest_presto self.configure(env) exec_command('{0} start'.format(presto_launcher_script)) # test if 'presto_worker_hosts' in host_info.keys(): all_hosts = host_info['presto_worker_hosts'] + \ host_info['presto_coordinator_hosts'] else: all_hosts = host_info['presto_coordinator_hosts'] # use Set, coordinator could be worker all_hosts = set(all_hosts) smoketest_presto( PrestoClient('localhost', 'root', config_properties['http-server.http.port']), all_hosts)