Python bindings for hdfs-native Rust library
Project description
Native HDFS Python bindings based on hdfs-native Rust package.
Installation
pip install hdfs-native
Example
from hdfs_native import Client
client = Client("hdfs://localhost:9000")
status = client.get_file_info("/file.txt")
Kerberos support
Kerberos (SASL GSSAPI) is supported through a runtime dynamic link to libgssapi_krb5
. This must be installed separately, but is likely already installed on your system. If not you can install it by:
Debian-based systems
apt-get install libgssapi-krb5-2
RHEL-based systems
yum install krb5-libs
MacOS
brew install krb5
Running tests
The same requirements apply as the Rust tests, requiring Java, Maven, Hadoop, and Kerberos tools to be on your path. Then you can:
python3 -m venv .venv
source .venv/bin/activate
pip3 install maturin
maturin develop -E devel
pytest
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
hdfs_native-0.10.0.tar.gz
(148.9 kB
view hashes)
Built Distributions
Close
Hashes for hdfs_native-0.10.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10bca122bd7b7eef39b57a7aa0a92014f02b740134598232a38ff337571881bb |
|
MD5 | b4b6dff61b9de57ec969950961bcaf5c |
|
BLAKE2b-256 | c790c6ed31a32817cb1f0db753f5f47976dfad89a4b36da7df28fc1719db3583 |
Close
Hashes for hdfs_native-0.10.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7decef0ea585389cc77c8d007f25d28146d04710650eb9eb88e2ae36299fab5 |
|
MD5 | 62d9d85f602d9b335756a0b60ea006ae |
|
BLAKE2b-256 | 9277500511a4d7f4e14f397c4c6e25175abe503190ea479c09dd5320329aedc8 |
Close
Hashes for hdfs_native-0.10.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0792fd52cb30b2a8bb3278b777ac7f4adba7f89c96bb60f84f45d2b0d231229c |
|
MD5 | 774483b71d0068565a69e1a48ea3124e |
|
BLAKE2b-256 | 25036aa6de960df54bf884a10392448669747127d05cf2b480c68a18b6c2face |
Close
Hashes for hdfs_native-0.10.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07319a8aa53834921120301f681e036cf489dca231c887fe10e6f2a512fda428 |
|
MD5 | 51ff705ce76129a1f509da1df8f42732 |
|
BLAKE2b-256 | c28b92731c3d06deac2c10ae422239b71a73925b5c95ba3ea27eef647fcc3ea3 |