Currently, my application uses C # with MONO on Linux to communicate with local file systems (e.g. ext2, ext3). Basic operations: open the file, write / read from the file, and close / delete the file. To do this, I am currently using native C # APIs (e.g. File.Open) to work with the file.
My question is if I install the Hadoop file system on my Linux box. then what change do I need to make with my existing functions so that they exchange the hadoop file system to do basic file operations. Since the Hadoop infrastructure is based on Java, like any C # application (with MONO on linux) will perform basic operations with Hadoop. Do the main APIs in C # use a file (likr File.Open or File.Copy) to work well with Hadoop file systems?
I thought something like this: Since Hadoop provides a C API for file operations. So write a C wrapper and insert the DLL from it. Then use this DLL in C # code to communicate with the Hadoop file systems.
Is it correct? or Someone may suggest some kind of document or steps so that my C # programs can open / read / write files from Hadoop FileSystems.
Thanks, Anil.
source
share