It seems that a lot of things have changed in the MapReduce API, so these examples do not work anymore, at least not out-of-the-box. It is not immediately clear if only simple refactorings have to be done, or if there are bigger modifications necessary.
Please update the code to match the current API.