Currently my application uses C# with MONO on Linux to communicate to local file systems (e.g. ext2, ext3). The basic operations are open a file, write/read from file and close/delete the file. For this, currently i use C# native APIs (like File.Open) to operate on the file.
My Question is: If i install Hadoop file system on my Linux box. Then what change i need to do to my existing functions so that they communicate to hadoop file system to do basic operations on the file. Since Hadoop infrastructure is based on Java, How any C# (with MONO on linux) application will do basic operations with Hadoop. Do the basic APIs in C# to operate on a file(likr File.Open or File.Copy) work well with Hadoop filesystems too?
I was thinking something like this: Since Hadoop exposes C API for file operations. So write a C wrapper and make a DLL out of it. Then use this DLL in C# code to communicate to Hadoop FileSystems.
Does this seem right? or Can someone please suggest some document or the steps so that my c# programs can open/read/write files from Hadoop FileSystems.
thanks, Anil.