从零自学Hadoop(13):Hadoop命令下
来源:互联网 发布:ubuntu php 编辑:程序博客网 时间:2024/05/24 06:25
序
上一篇,我们对Hadoop命令中的HDFS Commands进行了简略的列举,下面我们就MapReduce Commands和Yarn Commands进行简略的列举,官网基本都是英文的,所以只能拙略的翻译下,妄大家见谅。
下面,我们就开始对Hadoop命令下进行讲解。
MapReduce Commands
一:介绍
所有的MapReduce命令通过bin/ mapred脚本调用。不指定参数运行mapred脚本会打印所有命令的描述。
用法:
mapred [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [COMMAND_OPTIONS]
Hadoop有一个选项解析框架用于解析一般的选项和运行类。
User Commands
一:介绍
用于Hadoop集群用户命令。
二:archive
创建一个Hadoop档案.More information can be found at Hadoop Archives Guide.
三:classpath
打印Hadoop jar和所需的libs的class路径。
用法: mapred classpath
四:distcp
递归复制文件或目录. More information can be found at Hadoop DistCp Guide.
五:job
MapReduce jobs的命令
用法:
mapred job | [GENERIC_OPTIONS] | [-submit <job-file>] | [-status <job-id>] | [-counter <job-id> <group-name> <counter-name>] | [-kill <job-id>] | [-events <job-id> <from-event-#> <#-of-events>] | [-history [all] <jobOutputDir>] | [-list [all]] | [-kill-task <task-id>] | [-fail-task <task-id>] | [-set-priority <job-id> <priority>]
六:pipes
运行一个pipes job.
用法:
mapred pipes [-conf <path>] [-jobconf <key=value>, <key=value>, ...] [-input <path>] [-output <path>] [-jar <jar file>] [-inputformat <class>] [-map <class>] [-partitioner <class>] [-reduce <class>] [-writer <class>] [-program <executable>] [-reduces <num>]
七:queue
查看作业队列信息
用法:
mapred queue [-list] | [-info <job-queue-name> [-showJobs]] | [-showacls]
八:version
打印版本。
用法: mapred version
Administration Commands
一:介绍
用于Hadoop集群用户命令。
二:historyserver
启动JobHistoryServer.
用法: mapred historyserver
三:hsadmin
运行一个MapReduce hsadmin客户端执行jobhistoryserver administrative命令。
用法:
Usage: mapred hsadmin [-refreshUserToGroupsMappings] | [-refreshSuperUserGroupsConfiguration] | [-refreshAdminAcls] | [-refreshLoadedJobCache] | [-refreshLogRetentionSettings] | [-refreshJobRetentionSettings] | [-getGroups [username]] | [-help [cmd]]
YARN Commands
一:介绍
所有的YARN命令通过bin/yarn 脚本调用。不指定参数运行yarn脚本会打印所有命令的描述。
用法:
yarn [--config confdir] COMMAND [--loglevel loglevel] [GENERIC_OPTIONS] [COMMAND_OPTIONS]
YARN有一个选项解析框架用于解析一般的选项和运行类。
User Commands
一:介绍
用于Hadoop集群用户命令。
二:application
打印app报表或kill掉app
用法: yarn application [options]
三:applicationattempt
打印applicationattempt(s) 报表
用法:
yarn applicationattempt [options]
四:classpath
打印Hadoop jar和需要的库类路径。
用法: yarn classpath
五:container
打印container(s)报表
用法: yarn container [options]
六:jar
执行一个jar文件。
用法: yarn jar <jar> [mainClass] args...
七:logs
转储容器日志
用法:
yarn logs -applicationId <application ID> [options]
八:node
打印node报表
用法: yarn node [options]
九:queue
打印queue信息
用法: yarn queue [options]
十:version
打印hadoop版本。
用法: yarn version
Administration Commands用
一:介绍
用于Hadoop集群用户命令。
二:daemonlog
获取/设置在后台Log的级别
用法:
yarn daemonlog -getlevel <host:httpport> <classname> yarn daemonlog -setlevel <host:httpport> <classname> <level>
三:nodemanager
启动NodeManager
用法: yarn nodemanager
四:proxyserver
启动web proxy server
用法: yarn proxyserver
五:resourcemanager
启动ResourceManager
用法:
yarn resourcemanager [-format-state-store]
六:rmadmin
运行ResourceManager管理客户端
用法:
yarn rmadmin [-refreshQueues] [-refreshNodes] [-refreshUserToGroupsMapping] [-refreshSuperUserGroupsConfiguration] [-refreshAdminAcls] [-refreshServiceAcl] [-getGroups [username]] [-transitionToActive [--forceactive] [--forcemanual] <serviceId>] [-transitionToStandby [--forcemanual] <serviceId>] [-failover [--forcefence] [--forceactive] <serviceId1> <serviceId2>] [-getServiceState <serviceId>] [-checkHealth <serviceId>] [-help [cmd]]
七:scmadmin
运行Shared Cache Manager管理客户端
用法:
yarn scmadmin [options]
八:sharedcachemanager
启动Shared Cache Manager
用法: yarn sharedcachemanager
九:timelineserver
启动TimeLineServer
用法: yarn timelineserver
到此,本章节的内容讲述完毕。
- 【源】从零自学Hadoop(13):Hadoop命令下
- 从零自学Hadoop(13):Hadoop命令下
- 【源】从零自学Hadoop(11):Hadoop命令上
- 【源】从零自学Hadoop(12):Hadoop命令中
- 从零自学Hadoop(11):Hadoop命令上
- 从零自学Hadoop(12):Hadoop命令中
- 【源】从零自学Hadoop(04):Linux准备下
- 从零自学Hadoop(21):HBase数据模型相关操作下
- 【源】从零自学Hadoop(05):Ambari
- 【源】从零自学Hadoop(01):认识Hadoop
- 【源】从零自学Hadoop(17):Hive数据导入导出,集群数据迁移下
- 【源】从零自学Hadoop(17):Hive数据导入导出,集群数据迁移下
- 【源】从零自学Hadoop(07):Eclipse插件
- 【源】从零自学Hadoop(02):环境准备
- 【源】从零自学Hadoop(03):Linux准备上
- 【源】从零自学Hadoop(06):集群搭建
- 【源】从零自学Hadoop(07):Eclipse插件
- 【源】从零自学Hadoop(08):第一个MapReduce
- 关于优化问题
- redis命令一
- 机器学习学习笔记.day12
- 欢迎使用CSDN-markdown编辑器
- 把数组排成最小的数
- 从零自学Hadoop(13):Hadoop命令下
- POJ 3126 Prime Path BFS
- Mac. IntelliJ IDEA maven+springmvc添加包时小插曲
- 移动端车牌识别sdk计算机视觉、图像处理
- Factorial Trailing Zeroes
- 线性代数
- 数据结构——矩阵查找(牛客网1)
- 水池数目
- 中文分词之最短路径法和N最短路径