Hadoop也可以使用非Java语言来编写,主要使用Streaming API编写,但只适用较小、功能比较简单的MapReduce程序。

下面是使用Shell 脚本来对被引用的专利排序:

Chapter04 编写基本的MapReduce程序(二) 非JAVA语言编写mapreduce程序

运行的结果:

Chapter04 编写基本的MapReduce程序(二) 非JAVA语言编写mapreduce程序

使用python语言编写,需要使用file参数将程序打包成作业来运行,

Chapter04 编写基本的MapReduce程序(二) 非JAVA语言编写mapreduce程序

可以看出并没有设置特定的Reducer,采用默认的IdentifyReducer,把输入直接转变为输出。


相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-09-08
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2022-03-04
  • 2022-12-23
  • 2021-05-03
  • 2021-04-07
  • 2022-02-25
相关资源
相似解决方案