Is there a elegant c++ API to Hadoop?

c++, hadoop

Solution

Google released an open-source framework called MR4C to run C or C++ code on Hadoop.

Problem

Is there a way to submit Map/Reduce job to Hadoop from C or C++? Something like this but in C++ (this is java code): ``` Configuration config = new Configuration(); JobConf job = new JobConf(config); job.setJarByClass(MyFirstJob.class); job.setJobName("My first job"); FileInputFormat.setInputPaths(job, new Path(args[0)); FileOutputFormat.setOutputPath(job, new Path(args[1])); job.setMapperClass(MyFirstJob.MyFirstMapper.class); job.setReducerClass(MyFirstJob.MyFirstReducer.class); JobClient.runJob(job); ``` Thanks.

Original source