第一个MapReduce程序笔记
来源:互联网 发布:mysql e 执行sql 编辑:程序博客网 时间:2024/05/17 01:59
该程序是统计每个单词的使用频率
1.mapReduce程序是在hadoop官方文档上拷贝过来的,文件名为WordCount.java
2.编译打包该MapReduce程序:
$ javac -classpath ~/hadoop-1.2.1/hadoop-core-1.2.1.jar -d . WordCount.java$ jar -cvf WordCount.jar -C . .
3.将测试的文件上传到hdfs上
$ bin/hadoop fs -put file01 /usr/joe/wordcount/input$ bin/hadoop fs -put file02 /usr/joe/wordcount/input
4.运行该MapReduce程序:
$ ~/hadoop-1.2.1/bin/hadoop jar WordCount.jar WordCount /usr/joe/wordcount/input /usr/joe/wordcount/output
运行之前需要确保/usr/joe/wordcount/output是不存在的
0 0
- 第一个MapReduce程序笔记
- 第一个MapReduce程序
- 第一个MapReduce程序
- Hadoop学习笔记2--第一个Mapreduce程序
- WordCount,第一个MapReduce程序
- 第一个mapreduce程序WordCount
- 4、第一 个mapReduce程序
- 第一个MapReduce程序-WordCount
- 运行第一个mapreduce 程序 通过控制台
- 第一个MapReduce程序遇到的问题
- 第一个MapReduce程序——WordCount
- 第一个python实现的mapreduce程序
- WordCount计数--第一个MapReduce程序
- spring第一个程序笔记
- 【笔记】第一个socket程序
- 第一个mapreduce
- 在Eclipse中运行第一个MapReduce程序
- 在Eclipse中运行第一个MapReduce程序
- 状态模式
- ssh远程到远程服务器(非22端口号及非root登录)
- (java)异常处理原理和原则
- MVC 原理
- 使用Xcode调试器
- 第一个MapReduce程序笔记
- 1004. Counting Leaves (30)
- leetcode-1 Two Sum
- 访问者模式
- Tomcat内存溢出
- mongoDB的MapReduce简介
- Python编程基础之七条件和循环
- DATABASE SQL
- 中介者模式