Thrift based Client library for Hadoop Distributed FileSystem (HDFS) <http://hadoop.apache.org/hdfs>
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hadoopfs
scripts
README.md
setup.py

README.md

Usage

from hadoopfs.gen_py.ttypes import Pathname
from hadoopfs import HDFSClient

# Create HDFS connection
client = HDFSClient('127.0.0.1', 9000)

# Define a path
path = Pathname('/test')
# Check whether 'path' exists
print client.exists(path)
# Close the connection
client.close()