#!/bin/python
# -*- coding: utf-8 -*-

from hdfs.ext.kerberos import KerberosClient
import requests,csv,time

client=KerberosClient('http://x.x.x.x:50070',mutual_auth='REQUIRED',principal='example@EXAMPLE.COM')
print(client.list('/tmp'))

 

参考链接:https://stackoverflow.com/questions/57033413/connect-to-hdfs-with-kerberos-authentication-using-python

 

相关文章:

  • 2021-10-29
  • 2021-09-27
  • 2021-08-27
  • 2021-07-06
  • 2021-11-23
  • 2021-06-16
  • 2022-02-14
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2021-09-16
  • 2022-03-08
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案