class CatalogdProcess(BaseImpalaProcess): def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self.get_webserver_port(), self._get_webserver_certificate_file(), self.__get_port()) def _get_default_webserver_port(self): return DEFAULT_CATALOGD_WEBSERVER_PORT def __get_port(self): return int( self._get_port('catalog_service_port', DEFAULT_CATALOG_SERVICE_PORT)) def start(self, wait_until_ready=True): """Starts catalogd and waits until the service is ready to accept connections.""" restart_args = self.cmd[1:] LOG.info("Starting Catalogd process: {0}".format(restart_args)) run_daemon("catalogd", restart_args) if wait_until_ready: self.service.wait_for_metric_value( 'statestore-subscriber.connected', expected_value=1, timeout=30)
class CatalogdProcess(BaseImpalaProcess): def __init__(self, cmd): super(CatalogdProcess, self).__init__(cmd, socket.gethostname()) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=25020), self.__get_port(default=26000)) def __get_port(self, default=None): return int(self._get_arg_value('catalog_service_port', default)) def start(self, wait_until_ready=True): """Starts catalogd and waits until the service is ready to accept connections.""" restart_cmd = [CATALOGD_PATH] + self.cmd[1:] + ["&"] LOG.info("Starting Catalogd process: %s" % ' '.join(restart_cmd)) os.system(' '.join(restart_cmd)) if wait_until_ready: self.service.wait_for_metric_value('statestore-subscriber.connected', expected_value=1, timeout=30)
class CatalogdProcess(BaseImpalaProcess): def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=DEFAULT_CATALOGD_WEBSERVER_PORT), self._get_webserver_certificate_file(), self.__get_port()) def __get_port(self): return int(self._get_port('catalog_service_port', DEFAULT_CATALOG_SERVICE_PORT)) def start(self, wait_until_ready=True): """Starts catalogd and waits until the service is ready to accept connections.""" restart_cmd = [CATALOGD_PATH] + self.cmd[1:] + ["&"] LOG.info("Starting Catalogd process: %s" % ' '.join(restart_cmd)) os.system(' '.join(restart_cmd)) if wait_until_ready: self.service.wait_for_metric_value('statestore-subscriber.connected', expected_value=1, timeout=30)
class CatalogdProcess(BaseImpalaProcess): def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=DEFAULT_CATALOGD_WEBSERVER_PORT), self._get_webserver_certificate_file(), self.__get_port()) def __get_port(self): return int(self._get_port('catalog_service_port', DEFAULT_CATALOG_SERVICE_PORT)) def start(self, wait_until_ready=True): """Starts catalogd and waits until the service is ready to accept connections.""" restart_args = self.cmd[1:] LOG.info("Starting Catalogd process: {0}".format(restart_args)) run_daemon("catalogd", restart_args) if wait_until_ready: self.service.wait_for_metric_value('statestore-subscriber.connected', expected_value=1, timeout=30)
def __init__(self, cmd): super(CatalogdProcess, self).__init__(cmd, socket.gethostname()) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=25020), self.__get_port(default=26000))
def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self.get_webserver_port(), self._get_webserver_certificate_file(), self.__get_port())
def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService( self.hostname, self._get_webserver_port(default=DEFAULT_CATALOGD_WEBSERVER_PORT), self._get_webserver_certificate_file(), self.__get_port())
def __init__(self, cmd): super(CatalogdProcess, self).__init__(cmd) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=25020), self._get_webserver_certificate_file(), self.__get_port(default=26000))
def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self.get_webserver_port(), self._get_webserver_certificate_file(), self.__get_port())
def __init__(self, cmd, container_id=None, port_map=None): super(CatalogdProcess, self).__init__(cmd, container_id, port_map) self.service = CatalogdService(self.hostname, self._get_webserver_port(default=DEFAULT_CATALOGD_WEBSERVER_PORT), self._get_webserver_certificate_file(), self.__get_port())