码迷,mamicode.com
首页 > 其他好文 > 详细

云帆大数据学院_hdfs和YARN的启动方式

时间:2015-04-07 19:59:25      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:云帆大数据学院   mahout   graphx   hive   flume   sqoop   

YARN的Shell操作与管理

7.1启动YARN

YARN有2个守护线程:ResourceManager、NodeManager。

[hadoop@localhost hadoop-2.2.0]$sbin/yarn-daemon.sh start resourcemanager

[hadoop@localhost hadoop-2.2.0]$sbin/yarn-daemon.sh start nodemanager

7.2YARN Web管理界面

YARN管理地址:

ResourceManager: 主机名:8088 。本环境中为:http://hadoop-yarn.dragon.org:8088

NameNodeManager:主机名:8042 。本环境中为:http://hadoop-yarn.dragon.org:8042

技术分享


7.3运行MapRecuce程序


(1)  $HADOOP_HOME/share/hadoop/mapreduce目录下有很多例子程序:

Anexample program must be given as the first argument.

Validprogram names are:

  aggregatewordcount: An Aggregate basedmap/reduce program that counts the words in the input files.

  aggregatewordhist: An Aggregate basedmap/reduce program that computes the histogram of the words in the input files.

  bbp: A map/reduce program that usesBailey-Borwein-Plouffe to compute exact digits of Pi.

  dbcount: An example job that count thepageview counts from a database.

  distbbp: A map/reduce program that uses aBBP-type formula to compute exact bits of Pi.

  grep: A map/reduce program that counts thematches of a regex in the input.

  join: A job that effects a join over sorted,equally partitioned datasets

  multifilewc: A job that counts words fromseveral files.

  pentomino: A map/reduce tile laying programto find solutions to pentomino problems.

  pi: A map/reduce program that estimates Piusing a quasi-Monte Carlo method.

  randomtextwriter: A map/reduce program thatwrites 10GB of random textual data per node.

  randomwriter: A map/reduce program thatwrites 10GB of random data per node.

  secondarysort: An example defining asecondary sort to the reduce.

  sort: A map/reduce program that sorts thedata 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 countsthe words in the input files.

  wordmean: A map/reduce program that countsthe average length of the words in the input files.

  wordmedian: A map/reduce program that countsthe median length of the words in the input files.

  wordstandarddeviation: A map/reduce programthat counts the standard deviation of the length of the words in the inputfiles.

(2) 如何运行这些程序

运行这些例子通过$HADOOP_HOME/bin/yarn jar 命令执行,如:下面的例子是执行pi函数:

[root@hadoop-yarn hadoop-2.2.0]# bin/yarn jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar

说明:红色部分:命令    蓝色部分:jar文件所在的路径


云帆大数据学院_hdfs和YARN的启动方式

标签:云帆大数据学院   mahout   graphx   hive   flume   sqoop   

原文地址:http://yfteach01.blog.51cto.com/9428662/1629699

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!