dremio-hub / dremio-flight-connector

Dremio Flight connector. Access Dremio using Arrow flight
40 stars 8 forks source link

Dremio Arrow Flight error in ubuntu #16

Open JemiJey opened 4 years ago

JemiJey commented 4 years ago

Description

I'm trying to setup dremio-flight-connector on my local machine

What I Did

I followed all the steps described till this part

git clone https://github.com/dremio-hub/dremio-flight-connector.git
mvn clean install

move the plugin (the shaded jar that is created by maven) to dremio/jars When I try to connect I am getting this error, can someone guide me how to fix this problem.

---------------------------------------------------------------------------
FlightUnavailableError                    Traceback (most recent call last)
<ipython-input-5-181d735db090> in <module>
     21 
     22 client = flight.FlightClient('grpc+tcp://localhost:47470')
---> 23 client.authenticate(HttpDremioClientAuthHandler(username, password))
     24 info = client.get_flight_info(flight.FlightDescriptor.for_command(sql))
     25 reader = client.do_get(info.endpoints[0].ticket)

~/.local/lib/python3.6/site-packages/pyarrow/_flight.pyx in pyarrow._flight.FlightClient.authenticate()

~/.local/lib/python3.6/site-packages/pyarrow/_flight.pyx in pyarrow._flight.check_flight_status()

FlightUnavailableError: gRPC returned unavailable error, with message: Connect Failed
rymurr commented 4 years ago

Hi @JemiJey can you check the Dremio logs for errors or messages from the flight plugin. The client error indicates wrong password or an inaccessible flight port