skillfed

hdfs

HdfsCLI: API and command line interface for HDFS.

hdfs v2.7.3 6.2M downloads/30d#1,955 on PyPI
Permissive license MIT DORMANT released

What it is and what it does

HdfsCLI is a Python library and CLI tool that wraps the WebHDFS API to let you interact with Hadoop Distributed File System clusters. It provides both programmatic access—listing directories, reading and writing files, checking file metadata—and an interactive shell for ad-hoc exploration. The package supports both secure and insecure clusters, and includes optional extensions for Avro serialization and Pandas dataframe integration.

The library is marked Production/Stable and supports Python 3.7, 3.8, 3.9, 3.10, 3.11, and 3.12, but has not been actively maintained since 2023-10-13. It carries no known security vulnerabilities. Installation requires building from source, which adds friction. If your HDFS cluster is stable and your use case is straightforward file operations, the dormant status may not matter; if you need active support or are integrating with rapidly evolving Hadoop ecosystems, the lack of maintenance is a significant risk.

Use it for:

  • Batch upload or download files to/from HDFS in Python scripts without writing Java code.
  • Query HDFS file metadata (permissions, replication, block size) programmatically from Python.
  • Load Pandas dataframes directly from HDFS files using the optional dataframe extension.
  • Automate HDFS file operations in data pipelines using the Python API.
  • Interactively explore HDFS directory structure and file contents via the CLI shell.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

HdfsCLI provides Python bindings and a command-line interface for interacting with HDFS clusters via the WebHDFS API, supporting file operations, metadata queries, and an interactive shell.

Yes, if you have a stable HDFS cluster and need straightforward Python access to it. The MIT license is permissive, there are no known vulnerabilities, and the API is mature. However, the package is dormant, so expect no active support or fixes for new Hadoop versions. Suitable for legacy systems or simple use cases; risky for new projects expecting ongoing maintenance.

Install

hdfs on PyPI

pip

pip install hdfs

uv

uv add hdfs

poetry

poetry add hdfs

Installing hdfs

Before you install

Installation requires a source tarball (hdfs-2.7.3.tar.gz) with high friction. The package is dormant—last release was 1036 days ago—so expect no active maintenance or bug fixes going forward.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions, making this safe from a licensing standpoint for most projects.

Quickstart

pip install hdfs

from hdfs import InsecureClient
client = InsecureClient('http://localhost:50070')
files = client.list('/path')
with client.read('/path/file.txt') as reader:
    content = reader.read()

Requires an accessible HDFS namenode or HttpFS endpoint; WebHDFS must be enabled on the cluster.

Verify before relying

  • Whether optional extensions (avro, dataframe, kerberos) are installable and functional given the dormant maintenance status.
  • Current compatibility with modern Hadoop/HDFS versions and whether breaking API changes have occurred since the last release.
  • Whether the package remains compatible with Python 3.10, 3.11, and 3.12 despite dormant maintenance status.

Package facts

License MIT (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 1,036 days since the last release
First released
Downloads 6,220,079/month — #1,955 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hdfs-2.7.3.tar.gz

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

hdfs python clientwebhdfs api wrapperhadoop file system interfacehdfs command line tooldistributed file system accesshdfs interactive shellnamenode client library
hdfs-clienthadoop-integrationcli-tool

More Distributed Computing packages