I am trying to connect to my enterprise druid console through pydruid. A sample code follows as:
import numpy as np
import pandas as pd
import json
from pydruid import *
from pydruid.client import *
from pylab import plt
from pydruid.query import QueryBuilder
from pydruid.utils.postaggregator import *
from pydruid.utils.aggregators import *
from pydruid.utils.filters import *
client= PyDruid(url= 'https://imply****************** :**88',
endpoint='druid/v2')
client.set_basic_auth_credentials(username= "admin", password= "**Password" )
pulled_data= client.timeseries(
datasource= '**datasource1',
granularity='day',
intervals= "2020-02-27T09:00:00.000Z/2020-05-27T09:00:00.000Z",
filter = Dimension('Event_type')=='**event1')
.......
I have tried both with and without setting basic_auth_credentials
The url , endpoint, and credentials are from my Imply druid cluster API documentation.
The error I get:
URLError: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>
I am trying to connect to my enterprise druid console through pydruid. A sample code follows as:
I have tried both with and without setting basic_auth_credentials The url , endpoint, and credentials are from my Imply druid cluster API documentation.
The error I get:
URLError: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>
Suggestions would be helpful.