mapreduce 过程中出现任务失败
Task failures occur in mapreduce process
我是 hadoop mapreduce 的新用户。我想测试 mapreduce 任务失败。谁能给我 link 'testing mapreduce task failure' 的示例代码?
假设您想要 Java 中的程序,从任何教程网站获取任何 MapReduce 示例工作程序。
在Mapper
代码中,只写一行
throw new RuntimeException("My test exception");
同样,您可以测试 Reducer
代码。
我是 hadoop mapreduce 的新用户。我想测试 mapreduce 任务失败。谁能给我 link 'testing mapreduce task failure' 的示例代码?
假设您想要 Java 中的程序,从任何教程网站获取任何 MapReduce 示例工作程序。
在Mapper
代码中,只写一行
throw new RuntimeException("My test exception");
同样,您可以测试 Reducer
代码。