Write Hadoop MapReduce in high-level API. Inspired by Apache Spark
Void main() {
init
ds := c.load(input).map{ it.split(' ').join("\n") }.reduce(0)|Int r,v|{ r + 1 }
ds.save(output)
}
cd demo
fan wordCount.fan
set 'HADOOP_HOME' env vars
Running in a local simulation env.
fan wordCount.fan -debug
Show more detail by '-debug_show' args.
fan wordCount.fan -debug_show
fan wordCount.fan -hadoop '-files ./dict,./data'