I am attempting to test the arrow flight client examples. It works successfully with -user and -pass, but I am unable to connect with -user and -pat.
With the Java sample I get:
[ERROR] Exception:
org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED:
With the Python sample I get:
[INFO] Authentication skipped until first request
[INFO] Query: select 1
[ERROR] Exception: OSError('gRPC returned unauthenticated error, with message: . Detail: Unauthenticated')
Traceback (most recent call last):
File "example.py", line 263, in <module>
args.engine, args.session_properties)
File "example.py", line 236, in connect_to_dremio_flight_server_endpoint
schema = client.get_schema(flight_desc, options)
File "pyarrow\_flight.pyx", line 1300, in pyarrow._flight.FlightClient.get_schema
File "pyarrow\error.pxi", line 99, in pyarrow.lib.check_status
OSError: gRPC returned unauthenticated error, with message: . Detail: Unauthenticated
How do I connect using a PAT?