This project is read-only.

WebHDFS hdfs = new WebHDFS("namenodeURL", "username", "50070");

// List files in Directory
string jsonString = hdfs.ListDir("pathToDir");
Console.WriteLine(jsonString);

// Create Directory
hdfs.MkDir("path/folderName");

// Remove Directory/file
hdfs.RmDir("path/folderName");
hdfs.RmDir("path/fileName");

// Copy file from local to hdfs (Upload)
hdfs.CopyFromLocal(@"localFullPath", "hdfsDesinationFolder", 1);

// Copy from hdfs to local (Download)
hdfs.copyToLocal("hdfsSourcefolder", @"localFullPath");

// You can use json.net to parse results of listdir to object or datatable.

Last edited Oct 9, 2013 at 5:52 AM by sbansal, version 1