Skip to main content

HdfsCLI

Project description

API and command line interface for HDFS.

Features

  • Works with secure and insecure clusters (including Kerberos authentication).

  • Comprehensive python bindings for the WebHDFS API.

  • Lightweight CLI (under development).

Example

from hdfs import KerberosClient

# Instantiate the client
client = KerberosClient('http://namenode:port')

# Create a file on HDFS named 'foo' with contents 'Hello, world!'
client.write('foo', 'Hello, world!')

# Rename it to bar
client.rename('foo', 'bar')

# Download it locally as baz
client.download('bar', 'baz')

# Remove it from HDFS
client.delete('bar')

Documentation

The full documentation can be found here.

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-0.0.2.tar.gz (9.6 kB view hashes)

Uploaded Source

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