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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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