Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdfs-kerberos-no-verify-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file hdfs-kerberos-no-verify-0.0.1.tar.gz.

File metadata

File hashes

Hashes for hdfs-kerberos-no-verify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6cb8959206cf19ee8759980d691ae97b1d6daf62a543499115041e0bf60430be
MD5 8ccb46cebbfeb47a8dd78cca49259a18
BLAKE2b-256 578222cab0f235f9544397c86b9cfca08fc505f2df84a68b2666a96376919587

See more details on using hashes here.

File details

Details for the file hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2994bbf5c1250e8999f3a76b0fa44e047587afc3ab426c646c37aec0d0e64955
MD5 76eaa2c95083fa0cb90a4b9b4f4123d4
BLAKE2b-256 20e3db7a6ca90bf118b543032d2a60d6ab4e3688c52d52eb066aa01750b4a30e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page