4.9:MapReduce之WordCount

2023-02-12,,

〇、概述

1、拓扑结构

2、目标

使用hadoop的MapReduce来实现计数。

一、启动服务

二、新建计算的文件

三、上传文件

四、分析文件

cd ~/bigdata
hadoop jar WordCount.jar com.bit.WordCount /wordcount/srcdata/ /wordcount/output

查看实验结果

hdfs dfs -cat /wordcount/output/part-r-00000

4.9:MapReduce之WordCount的相关教程结束。

《4.9:MapReduce之WordCount.doc》

下载本文的Word格式文档,以方便收藏与打印。