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()
-
Notifications
You must be signed in to change notification settings - Fork 0
Thrift based Client library for Hadoop Distributed FileSystem (HDFS) <http://hadoop.apache.org/hdfs>
semk/HadoopFS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Thrift based Client library for Hadoop Distributed FileSystem (HDFS) <http://hadoop.apache.org/hdfs>
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published