how do I install pdsh on centos 6?

5,841

Solution 1

Try to run this first:

yum update

Say yes to all updates, later run:

rpm -Uvh http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari-1.x-1.el6.noarch.rpm

And:

yum install pdsh

If this commands retrieve errors, copy from terminal and paste here

Solution 2

For those whom are not using Hadoop, but looking for just pdsh, it can be obtained in the Fedora EPEL. The repository can be enabled on CentOS / RHEL 6 by running...

wget http://mirrors.mit.edu/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum install pdsh

Personally, the EPEL is the one of the few trusted repos I'll venture out to for a CentOS / Redhat Enterprise Linux server. I've also shortened the link for you if you have to manually type it in the console of the VM.

wget http://goo.gl/2GWMof
Share:
5,841
Alex Gordon
Author by

Alex Gordon

Check out my YouTube channel with videos on Azure development.

Updated on September 18, 2022

Comments

  • Alex Gordon
    Alex Gordon over 1 year

    I'm following a tutorial on how to configure a centos machine to be a node in a hadoop cluster for HortonWorks. I'm doing this on a virtual machine on VirtualBox.

    Sadly, since I am a linux beginner, I am stuck on some very basic steps:

     2.4. Software Requirements
    
    On each of your hosts:
    
    yum
    
    rpm
    
    scp
    
    curl
    
    wget
    
    pdsh
    

    I know that all of the above are installed because when I type them in the terminal, something is returned besides bad command or file name.

    However, when i type pdsh, I am getting the bad command...

    I've googled dozens of websites, and there's no clear direction on how to install pdsh?

    • Eric
      Eric almost 11 years
      If you truly just need pdsh, you can "yum install pdsh". You can also run "rpm -qa | grep pdsh" to see if it's on your system and once it is, what version it is.
    • Alex Gordon
      Alex Gordon almost 11 years
      @Eric thank you but im getting, syntax error near unexpected token '('
    • Alex Gordon
      Alex Gordon almost 11 years
      im running su root yum install pdsh
    • Alex Gordon
      Alex Gordon almost 11 years
      @Eric the rpm -qa returned nothing btw
  • Alex Gordon
    Alex Gordon almost 11 years
    thanks so much, is there a way to copy from host system to VM? the vm is centos. ive already installed the guest additions
  • Alex Gordon
    Alex Gordon almost 11 years
    bythe way, after running yum update, im getting the same error: import command not found, try command not found, except command not found , syntax error near token...
  • Alex Gordon
    Alex Gordon almost 11 years
    thanks!! i just did su, and then entered password, and then i did what you said and it worked!
  • Vamsi M
    Vamsi M almost 11 years
    For the copy and paste from host system to VM guest's I recommend to use putty (if you use windows) directly to the server, is more easy.
  • Alex Gordon
    Alex Gordon almost 11 years
    thanks a lot!how od i do this?