【发布时间】:2023-03-18 19:23:01
【问题描述】:
我正在尝试通过 Livy 连接到一个 kerberized hadoop 集群以执行 Spark 代码。我发出的请求如下。
kerberos_auth = HTTPKerberosAuth(mutual_authentication=REQUIRED, force_preemptive=True)
r = requests.post(host + '/sessions', data=json.dumps(data), headers=headers, auth=kerberos_auth)
此调用失败并出现以下错误
GSSException:未提供有效凭据(机制级别:失败 查找任何 Kerberos 凭据)
如有任何帮助,我们将不胜感激。
【问题讨论】:
标签: python-2.7 hadoop authentication kerberos livy