Hi,
I am having some issues trying to query dremio with python.
I have python 3.8.5, pyarrow 3.0.0 and dremio connector 0.14.0
Basically when I run the script
import pandas as pd
from dremio_client import flight
def my_flight_df(sql, conn):
return flight.query(
sql,
hostname=conn['host'],
port=32010,
username=conn['uid'],
password=conn['pwd'],
tls_root_certs_filename=None,
)
df = my_flight_df(query, params)
I am getting this error
FlightUnavailableError: gRPC returned unavailable error, with message: failed to connect to all addresses
Is there something I need to set up before querying using FLIGHT?
I have also try to run my query with odbc and I am getting an auth error, but I am 100% I wrote the right credentials
InterfaceError: ('28000', '[28000] [Dremio][Connector] (40) User authentication failed. Server message: [30017]User authentication failed (please check the username and password).[Server message was: (8a0d73df-05cc-4e57-afbb-a340d3c7744c) Invalid user credentials, user capi] (40) (SQLDriverConnect); [28000] [Dremio][Connector] (40) User authentication failed. Server message: [30017]User authentication failed (please check the username and password).[Server message was: (8a0d73df-05cc-4e57-afbb-a340d3c7744c) Invalid user credentials, user capi] (40)')
Is there something I need to set up before querying using python?