コード例 #1
0
 def get_pydruid_client(self):
     cli = client.PyDruid(
         "http://{0}:{1}/".format(self.broker_host, self.broker_port),
         self.broker_endpoint)
     return cli
コード例 #2
0
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)