新 Hadoop API 中的identityreducer [英] identityreducer in the new Hadoop API

查看:7
本文介绍了新 Hadoop API 中的identityreducer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了将近一天的时间,但不知道如何在新的 Hadoop API 中使用 IdentityReducer.我能找到的所有参考资料或类都使用旧 API.显然,在新的 API 代码库中混合旧的 API idetntitreducer 类并不顺利.任何帮助将不胜感激.

I spent almost a day but couldn't figure out how to use IdentityReducer in the new Hadoop API. All references or classes I can find are with the old API. And obviously mixing up old API idetntitreducer class in the new API codebase doesn't go well. Any help will be appreciated.

推荐答案

主要是因为在新的 API 中 MapperReducer 是类而不是接口,它们是新的替换 IdentityMapper/Reducer.

Mainly because in the new API Mapper and Reducer are classes instead of interfaces, they are the new replacement of IdentityMapper/Reducer.

所以你只需要使用 Mapper.classReducer.class 来获取身份.

So you just have to use Mapper.class and Reducer.class to get the identity.

这篇关于新 Hadoop API 中的identityreducer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆