There is currently no way to read MapFiles in any language other than
Java. You can write a JNI wrapper similar to libhdfs.
Alternatively, you can also write the complete stack from scratch,
however this might prove very difficult or impossible. You might want to
check the ObjectFile/TFile specifications for which binary compatible
reader/writers can be developed in any language :
https://issues.apache.org/jira/browse/HADOOP-3315
Enis
Anh Vũ Nguyễn wrote:
Hi, everybody. I am writing a project in C++ and want to use the power of
MapFile class(which belongs to org.apache.hadoop.io) of hadoop. Can you
please tell me how can I write code in C++ using MapFile or there is no way
to use API org.apache.hadoop.io in c++ (libhdfs only helps with
org.apache.hadoop.fs).
Thanks in advance!