Skip to main content

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

Metadata

Release files for hdfs-kerberos-no-verify 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdfs-kerberos-no-verify 0.0.1
File Size Uploaded
hdfs-kerberos-no-verify-0.0.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hdfs-kerberos-no-verify 0.0.1
File Interpreter ABI Platform
hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / hdfs-kerberos-no-verify-0.0.1.tar.gz

Download URL hdfs-kerberos-no-verify-0.0.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6cb8959206cf19ee8759980d691ae97b1d6daf62a543499115041e0bf60430be
BLAKE2b-256 checksum
How to use checksums
578222cab0f235f9544397c86b9cfca08fc505f2df84a68b2666a96376919587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl

Download URL hdfs_kerberos_no_verify-0.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2994bbf5c1250e8999f3a76b0fa44e047587afc3ab426c646c37aec0d0e64955
BLAKE2b-256 checksum
How to use checksums
20e3db7a6ca90bf118b543032d2a60d6ab4e3688c52d52eb066aa01750b4a30e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page