Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Sorry for the newbie question! We have a cluster that runs on centOS. I wanted to zip some files (very large files). I am told that I should use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2013
    Posts
    2

    running commands on slave nodes?


    Hi,

    Sorry for the newbie question!

    We have a cluster that runs on centOS. I wanted to zip some files (very large files). I am told that I should use the head node for this as it would tie down the CPU. How can I do this using one of the other nodes in the cluster?

    For small files, I would just log into the cluster using ssh (ie. ssh myname AT ourCluster DOT x DOT y DOT z) and run the tar from command line. But this would be using the head node.

    How do I do the same operations, but use a node other than the head node?

    thanks!

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    890
    ssh to the IP of one of the nodes instead of the domain name.

  3. #3
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    932
    With ssh you can also have it execute a command on your remote node, I did this to zip and transer files. I wrote a script and put it on my nodes then was able to from my workstation ssh to remote nodes and run the script.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •