amasend opened a new issue #9525:
URL: https://github.com/apache/arrow/issues/9525
Hi all,
I am trying to manage a connection to the `flight server` via `pyarrow`
library and encountered below problem:
```python
Traceback (most recent call last):
File "...", line 22, in <module>
"grpc+tls://some_address:9443", disable_server_verification=True)
File "pyarrow/_flight.pyx", line 1047, in
pyarrow._flight.FlightClient.__init__
File "pyarrow/_flight.pyx", line 1093, in pyarrow._flight.FlightClient.init
File "pyarrow/_flight.pyx", line 80, in pyarrow._flight.check_flight_status
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Using encryption with server
verification disabled is unsupported. Please use a release of Arrow Flight
built with gRPC 1.27 or higher.
```
I am using something similar to this:
```python
from pyarrow import flight
import pyarrow as pa
class TokenClientAuthHandler(flight.ClientAuthHandler):
"""An example implementation of authentication via handshake."""
def __init__(self):
super().__init__()
self.token = bytes('Bearer ' + token, 'utf-8')
def authenticate(self, outgoing, incoming):
outgoing.write(self.token)
self.token = incoming.read()
def get_token(self):
return self.token
read_client = flight.FlightClient(
"grpc+tls://some_address:9443", disable_server_verification=True)
```
The same code on `Ubuntu` linux is working fine.
Here are package versions that I am using:
- `pyarrow==3.0.0`
- `grpcio==1.35.0`
- `grpc-cpp==1.35.0`
My environment is `conda`, `3.6 / 3.7`
I'v tried to change/adjust these versions somehow but with no success.
Maybe you will know what cause the problem as I cannot find anything besides
this thread: https://www.mail-archive.com/[email protected]/msg21050.html
I will appreciate your answers!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]