博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Run hadoop example
阅读量:6244 次
发布时间:2019-06-22

本文共 1703 字,大约阅读时间需要 5 分钟。

 

root@u1:/home/sa/hod/hadoop-0.20.1# bin/hadoop fs -put ./conf/core-site.xml  /input

root@u1:/home/sa/hod/hadoop-0.20.1# bin/hadoop jar hadoop-*-examples.jar wordcount /input /output2
root@u1:/home/sa/hod/hadoop-0.20.1# bin/hadoop jar hadoop-*-examples.jar
An example program must be given as the first argument.
Valid program names are:
  aggregatewordcount: An Aggregate based map/reduce program that counts the words in the input files.
  aggregatewordhist: An Aggregate based map/reduce program that computes the histogram of the words in the input files.
  dbcount: An example job that count the pageview counts from a database.
  grep: A map/reduce program that counts the matches of a regex in the input.
  join: A job that effects a join over sorted, equally partitioned datasets
  multifilewc: A job that counts words from several files.
  pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
  pi: A map/reduce program that estimates Pi using monte-carlo method.
  randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
  randomwriter: A map/reduce program that writes 10GB of random data per node.
  secondarysort: An example defining a secondary sort to the reduce.
  sleep: A job that sleeps at each map and reduce task.
  sort: A map/reduce program that sorts the data written by the random writer.
  sudoku: A sudoku solver.
  teragen: Generate data for the terasort
  terasort: Run the terasort
  teravalidate: Checking results of terasort
  wordcount: A map/reduce program that counts the words in the input files.

hadoop jar hadoop-0.20.2-examples.jar wordcount

Usage: wordcount <in> <out>

 

转载于:https://www.cnblogs.com/licheng/archive/2011/11/08/2241780.html

你可能感兴趣的文章
NBU MediaServer DrivePATH Missing
查看>>
useradd/usermod -p 指定用户密码
查看>>
CSS第一天
查看>>
memcache与一致性HASH算法
查看>>
正则表达式引发的血案
查看>>
机器学习中的概率模型和概率密度估计方法及VAE生成式模型详解之三(第1章)...
查看>>
Ubuntu学习之grep
查看>>
远距离混合语音识别方法的研究
查看>>
Java线程实现与安全
查看>>
分享一款意想不到好用的手机PDF编辑器
查看>>
Linux常用文件权限以及修改方法
查看>>
win10系统必做优化,让你的电脑告别卡顿,运行速度至少提升20%
查看>>
shell——read详解
查看>>
我的友情链接
查看>>
大数据教程(1.8):Linux之SSH免密登录配置
查看>>
ftp passive mode
查看>>
安装问题Error: dl failure on line 864
查看>>
oracle表分区详解(按天、按月、按年等)
查看>>
yum update upgrade区别
查看>>
angularjs select 三级联动
查看>>