FlightSQL报错

Viewed 1

本地局域网,通过python访问远程服务器(腾讯云)上的doris(版本是4.0),
import adbc_driver_manager
import adbc_driver_flightsql.dbapi as flight_sql
conn = flight_sql.connect(uri=f"grpc://{doris_url}:8070",
db_kwargs={
adbc_driver_manager.DatabaseOptions.USERNAME.value: f"{doris_account}",
adbc_driver_manager.DatabaseOptions.PASSWORD.value: f"{doris_password}",
}
)
在建立conn连接的时候报错,ProgrammingError: UNAUTHENTICATED: [FlightSQL] Unable to authenticate user read_user, exception: errCode = 2, detailMessage = Access denied for user 'read_' (using password: YES) (Unauthenticated; AuthenticateBasicToken)
我不是root用户,只是一个只读权限的普通用户。用mysql协议是没问题的,就是用FlightSQL不行。
(之前访问本地局域网的doris3.0,FlightSQL是可以的)

0 Answers