Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在两个后续 MapReduce 作业之间的数据上执行(相对较短的)本地方法?
如果是,如何实现?
提前致谢!
一种简单的方法是:
Job job1 = new Job(conf1);
Job job2 = new Job(conf2);
在 Main 函数中,您可以执行以下操作:
job1.waitForCompletion(true); //execute your local method method(); job2.waitForCompletion(true);