如何运行Hadoop例子中的wordcount
2014-06-06 12:47
537 查看
1. 新建一个文件 test.txt
2. 将它copy到HDFS上; bin/hadoop dfs -put test.txt test.txt
3.运行它.
bin/hadoop jar hadoop-0.18.0-examples.jar wordcount -m 1 -r 2 test.txt out
4. 查看结果
4.1 可以使用 bin/hadoop dfs -cat yourfilename
4.2 使用浏览器查看(你可以从hadoop-default.xml中获得NameNode的http端口,使用ifconfig获得NameNode的IP地址)
NameNode的主页面
out目录的结果
refs:
great hadoop tutorial:
https://developer.yahoo.com/hadoop/tutorial/index.html
2. 将它copy到HDFS上; bin/hadoop dfs -put test.txt test.txt
3.运行它.
bin/hadoop jar hadoop-0.18.0-examples.jar wordcount -m 1 -r 2 test.txt out
4. 查看结果
4.1 可以使用 bin/hadoop dfs -cat yourfilename
4.2 使用浏览器查看(你可以从hadoop-default.xml中获得NameNode的http端口,使用ifconfig获得NameNode的IP地址)
NameNode的主页面
out目录的结果
refs:
great hadoop tutorial:
https://developer.yahoo.com/hadoop/tutorial/index.html
相关文章推荐
- Ubantu下hadoop运行第一个例子wordcount过程
- Hadoop 2.2.0新API的WordCount例子(运行通过)
- hadoop-0.20.1-examples.jar wordcount 例子运行出现的问题记录
- hadoop2.2使用手册2:如何运行自带wordcount
- 云计算学习笔记006---运行hadoop的例子程序:统计字符--wordcount例子程序
- hadoop基础----hadoop实战(三)-----hadoop运行MapReduce---对单词进行统计--经典的自带例子wordcount
- 分布式环境搭建redhat7+hadoop2.6.1+jdk1.8+WordCount成功运行例子
- 运行hadoop自带wordcount例子
- Hadoop伪分布式运行wordcount例子
- centos6.5配置Hadoop环境,运行wordcount例子
- 关于hadoop1.0.4运行自带例子WordCount内存溢出问题。
- [Linux][Hadoop] 运行WordCount例子
- 在linux下eclipse中运行hadoop自带的WordCount例子出现的两个错误
- hadoop自带例子wordcount的具体运行步骤
- hadoop的wordcount例子运行
- Hadoop伪分布式运行wordcount小例子
- eclipse中运行Hadoop2.6.0的WordCount例子
- hadoop基础----hadoop实战(三)-----hadoop运行MapReduce---对单词进行统计--经典的自带例子wordcount
- hadoop自带例子wordcount的具体运行步骤