Mryqu's Notes


  • 首页

  • 搜索
close

[Hadoop] YARN DistributedShell实践

时间: 2016-01-31   |   分类: BigData     |   阅读: 22 字 ~1分钟

YARN DistributedShell介绍

Hadoop2的源代码中实现了两个基于YARN的应用,一个是MapReduce,另一个是非常简单的应用程序编程实例——DistributedShell。DistributedShell是一个构建在YARN之上的non-MapReduce应用示例。它的主要功能是在Hadoop集群中的多个节点,并行执行用户提供的shell命令或shell脚本(将用户提交的一串shell命令或者一个shell脚本,由ApplicationMaster控制,分配到不同的container中执行)。

YARN DistributedShell测试

执行下列命令进行测试:

hadoop jar /usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.X.jar -shell_command /bin/ls -shell_args /home/hadoop -jar /usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.X.jar

客户端日志显示执行成功:[Hadoop] YARN DistributedShell实践

参考

如何运行YARN中的DistributedShell程序
YARN DistributedShell源码分析与修改
YARN Distributedshell解析

标题:[Hadoop] YARN DistributedShell实践
作者:mryqu
声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!

#hadoop# #yarn# #distributedshell#
[C++]获取推文生成的SAS时间
了解HTML5 Data Adapter for SAS®(h54s)
  • 文章目录
  • 站点概览

Programmer & Architect

662 日志
27 分类
1472 标签
GitHub Twitter FB Page
    • YARN DistributedShell介绍
    • YARN DistributedShell测试
    • 参考
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%