def get_pydruid_client(self): cli = client.PyDruid( "http://{0}:{1}/".format(self.broker_host, self.broker_port), self.broker_endpoint) return cli
def get_pydruid_client(): from pydruid import client return client.PyDruid( "http://{0}:{1}/".format(config.DRUID_HOST, config.DRUID_PORT), config.DRUID_BASE_ENDPOINT)