【发布时间】:2020-12-23 23:58:01
【问题描述】:
我正在尝试使用 SQLAlchemy 通过 Presto 运行 Hive 查询。它使用 LDAP 身份验证,但我在连接字符串中遗漏了一些内容。
from sqlalchemy.engine import create_engine
conn_string = 'presto://' + user + ':' + passw + '@' + host + ':' + port + db \
+ ", connect_args={'auth':LDAP}"
eng = create_engine(conn_string)
我收到一条错误消息:
Protocol must be https when passing a password
我在搜索时看到了一些关于此的讨论,但没有看到明确的解决方案。我已经尝试了很多有或没有端口、数据库等的组合。你知道怎么做吗?谢谢!
【问题讨论】:
标签: sql python-3.x hive sqlalchemy presto