A custom of from hdfs.ext.kerberos import KerberosClient from hdfs package that allow you to use with self-signed https url.
Project description
HDFS Kerberos but no SSL verify
A custom of from hdfs.ext.kerberos import KerberosClient
from hdfs package that allow you to use with self-signed https url.
Usage
Use as you use KerberosClient
from hdfs_kerberos_no_verify import NoVerifyKerberosClient as KerberosClient
# use as you would use KerberosClient
def create_keberos_hdfs_client():
"""
require kinit
please kinit from terminal to get ticket first
"""
import os
os.environ["KRB5_CONFIG"]="/where/did/you/put-krb5/etc/krb5.conf"
hostport = "https://master1975.me.meowingful.com:8999" # your self-signed https
client = KerberosClient(hostport, mutual_auth='DISABLED')
return client
client = create_keberos_hdfs_client()
client.list("/home/myfile")
To build from source
pip install build
python -m build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hdfs-kerberos-no-verify-0.0.1.tar.gz
.
File metadata
- Download URL: hdfs-kerberos-no-verify-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb8959206cf19ee8759980d691ae97b1d6daf62a543499115041e0bf60430be |
|
MD5 | 8ccb46cebbfeb47a8dd78cca49259a18 |
|
BLAKE2b-256 | 578222cab0f235f9544397c86b9cfca08fc505f2df84a68b2666a96376919587 |
File details
Details for the file hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2994bbf5c1250e8999f3a76b0fa44e047587afc3ab426c646c37aec0d0e64955 |
|
MD5 | 76eaa2c95083fa0cb90a4b9b4f4123d4 |
|
BLAKE2b-256 | 20e3db7a6ca90bf118b543032d2a60d6ab4e3688c52d52eb066aa01750b4a30e |