pdsh配置及应用
来源:互联网 发布:python 人工神经网络 编辑:程序博客网 时间:2024/05/14 17:51
1、下载和安装
可以在官网http://sourceforge.net/projects/pdsh/下载。
wget http://nchc.dl.sourceforge.net/project/pdsh/pdsh/pdsh-2.26/pdsh-2.26.tar.bz2tar jxvf pdsh-2.26.tar.bz2cd pdsh-2.26./configuremakemake install
2、安装好以后,可以先看下pdsh的参数
hadoop@master:~/pdsh-2.26$ pdsh --helppdsh: invalid option -- '-'Usage: pdsh [-options] command ...-S return largest of remote command return values-h output usage menu and quit-V output version information and quit-q list the option settings and quit-b disable ^C status feature (batch mode)-d enable extra debug information from ^C status-l user execute remote commands as user-t seconds set connect timeout (default is 10 sec)-u seconds set command timeout (no default)-f n use fanout of n nodes-w host,host,... set target node list on command line-x host,host,... set node exclusion list on command line-R name set rcmd module to name-M name,... select one or more misc modules to initialize first-N disable hostname: labels on output lines-L list info on all loaded modules and exitavailable rcmd modules: rsh,exec (default: rsh)3、远程执行命令
hadoop@master:~/pdsh-2.26$ pdsh -d -R exec -w hadoop@slave[1-4] ssh -x %h "hostname"slave3: slave3slave2: slave2slave1: slave1slave4: slave4Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max: 1 secFailures: 0需要执行其他命令的时候,只需要把引号里面的换成其他命令就行了。
- pdsh配置及应用
- PDSH 简单配置应用记录
- pdsh+pdcp
- pdsh简介
- ibatis配置及应用
- 配置环境变量 及 应用
- OpenWRT配置及应用
- wget配置及应用
- bash配置及应用
- structs2配置及应用
- Spring配置及应用
- Tuxedo配置及简单应用
- Framebuffer的配置及应用
- FCKEditor的配置及应用
- weblogic 配置及应用部署
- mongodb配置及应用实例
- Framebuffer的配置及应用
- Grunt安装、配置及应用
- 在winform中运用FusionCharts图表(二)
- Abator安装与应用实例(图解)
- 5月5日阿里巴巴暑假实习研发试题回忆 个人解题思路
- 创建存储过程
- 在一台电脑上使用两个不同版本的JDK
- pdsh配置及应用
- 带消息循环的线程(LooperThread)模板
- 如何在OpenStack Dashboard中创建网络
- 图解Java对象初始化过程以及方法调用
- android多媒体框架之流媒体具体流程篇3----base on jellybean(十三)
- Struts 2 + Spring 2.0 + Hibernate 3.0整合笔记
- 从零开始--系统深入学习android(实践-让我们开始写代码-Android框架学习-5.设置(Settings))
- CSS3 RGBA和HSLA色彩模式
- 斐波那契(Fibonacci)数列问题