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