Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 当使用Livy连接到Kerberized Hadoop集群时,Python请求Post请求失败_Python 2.7_Hadoop_Authentication_Kerberos_Livy - Fatal编程技术网

Python 2.7 当使用Livy连接到Kerberized Hadoop集群时,Python请求Post请求失败

Python 2.7 当使用Livy连接到Kerberized Hadoop集群时,Python请求Post请求失败,python-2.7,hadoop,authentication,kerberos,livy,Python 2.7,Hadoop,Authentication,Kerberos,Livy,我正试图通过Livy连接到kerberized hadoop集群以执行Spark代码。im发出的请求如下所示 kerberos_auth = HTTPKerberosAuth(mutual_authentication=REQUIRED, force_preemptive=True) r = requests.post(host + '/sessions', data=json.dumps(data), headers=headers, auth=kerberos_auth) 此调用失败,出现

我正试图通过Livy连接到kerberized hadoop集群以执行Spark代码。im发出的请求如下所示

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 Credentail)


这里的任何帮助都将不胜感激。

在安全模式下在Hadoop中运行Hadoop服务守护程序时,Kerberos票证将使用密钥表解密,服务将使用密钥表确定进入集群的用户的凭据。如果没有包含正确服务主体的keytab,您将收到此错误消息。有关设置密钥表的更多详细信息,请参阅。

在安全模式下在Hadoop中运行Hadoop服务守护程序时,Kerberos票证使用密钥表解密,服务使用密钥表确定进入集群的用户的凭据。如果没有包含正确服务主体的keytab,您将收到此错误消息。有关设置键选项卡的更多详细信息,请参阅