HDFS ClientΒΆ
The hdfs client is nearly full client. It lacks features found in the C++ client. These will be added over time. Please visit the link, above, to find the API of what is currently supported
An example usage of these functions is below. Note that if Opening RFiles in pysharkbite, you must specify the full path including the hdfs protocol if it is located on HDFS. This will open a full HDFS client to access these files.
import pysharkbite
hdfs = pysharkbite.Hdfs("hdfs://namenode:8020",8020);
hdfs.mkdir("/directoryA/directoryB");
hdfs.list("/");