Skip to content

Instantly share code, notes, and snippets.

@isaacabraham
Last active August 29, 2015 13:56
Show Gist options
  • Save isaacabraham/9081647 to your computer and use it in GitHub Desktop.
Save isaacabraham/9081647 to your computer and use it in GitHub Desktop.
Sample showing how to use HadoopFs
/// A mapper exe
let mainMap argv =
doMap <| ManyOutputs WordCount.Mapper
0
/// A reducer exe
let mainReduce argv =
doReduce <| SingleOutput WordCount.Reducer
0
/// Testing a full map reduce, reading inputs from the file system and writing output to the console.
let mainMap argv =
doMapReduce <| ManyOutputs WordCount.Mapper <| SingleOutput WordCount.Reducer <| Readers.FileSystem(@"C:\Input.txt") <| Writers.Console
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment