WordCount代码实现详解
来源:互联网 发布:java jna调用64位dll 编辑:程序博客网 时间:2024/06/10 22:55
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.hadoop.examples;//导入必要的packageimport java.io.IOException; //报错类 import java.util.StringTokenizer; //StringTokenizer类,用于将空白字符作为分割符的类import org.apache.hadoop.conf.Configuration;//Hadoop中用于读取配置信息的类import org.apache.hadoop.fs.Path; //有关文件系统输入输出数据的类import org.apache.hadoop.io.IntWritable; //封装定义了IntWritable类import org.apache.hadoop.io.Text; //封装定义了Text类import org.apache.hadoop.mapreduce.Job; //封装定义了Job类import org.apache.hadoop.mapreduce.Mapper; //封装定义了Mapper类import org.apache.hadoop.mapreduce.Reducer; //封装定义了Reducer类import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; //文件输入要用到的类import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; //文件输出要用到的类import org.apache.hadoop.util.GenericOptionsParser; //GenericOptionsParser类,用来解释常用hadoop命令,并根据需要为Configuration对象设置相应的值public class WordCount { public static class TokenizerMapper extends Mapper
1 0
- WordCount代码实现详解
- WordCount代码实现
- WordCount代码实现
- hadoop wordcount代码事例详解
- Hadoop分布式WordCount代码详解
- hadoop自带wordcount代码详解
- hadoop入门经典:wordcount代码详解
- hadoop自带wordcount代码详解
- hadoop入门程序WordCount代码详解
- Spark之WordCount(Java代码实现)
- mapreduce学习笔记-wordcount代码实现
- WordCount代码
- WordCount详解
- WordCount 详解
- 5行代码怎么实现Hadoop的WordCount?
- hadoop-python——Wordcount程序:python实现详解
- Hadoop入门WordCount代码
- hadoop wordcount 代码
- UVA
- 个人模板 ST表
- Udacity深度学习-深度神经网络-assignment3
- TSP_旅行商问题
- Hibernate(9)懒加载问题解决方案
- WordCount代码实现详解
- Mint-ui MessageBox.confirm
- struts2+hibernate+mysql
- 'module' object has no attribute 'OP_NO_TLSv1_1'
- 5-5Underscore01
- 使用Anaconda搭建SimpleITK开发环境
- 前后台交互
- HashMap引起的事故:jdk1.7和jdk1.8下的hash函数的不同
- 2017sdut期末机试——和泉纱雾