mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1131705 - in /incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2: prologue.setup-mpi-master setup-mpd-conf setup-torque
Date Sun, 05 Jun 2011 04:59:52 GMT
Author: benh
Date: Sun Jun  5 04:59:51 2011
New Revision: 1131705

URL: http://svn.apache.org/viewvc?rev=1131705&view=rev
Log:
removing secret key distribution, it works now

Removed:
    incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-mpd-conf
Modified:
    incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/prologue.setup-mpi-master
    incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque

Modified: incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/prologue.setup-mpi-master
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/prologue.setup-mpi-master?rev=1131705&r1=1131704&r2=1131705&view=diff
==============================================================================
--- incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/prologue.setup-mpi-master
(original)
+++ incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/prologue.setup-mpi-master
Sun Jun  5 04:59:51 2011
@@ -1,22 +1,34 @@
-#! /usr/bin/env bash
+#! /usr/bin/env sh
 
 echo "In Mother Superior prologue, PBS_NODEFILE is: "
 
 cat $PBS_NODEFILE
 
-touch /etc/mpd.conf
-chmod 600 /etc/mpd.conf
-echo "MPD_SECRETWORD=$1" | cat >> /etc/mpd.conf
-echo "finished setting up /etc/mpd.conf with value MPD_SECRETWORK=$1"
+ID=`echo $1`
+echo id is $ID
 
+SW=`echo $1|cut -c 1`
+echo sw is $SW
+
+#rm /etc/mpd.conf
+#touch /etc/mpd.conf
+#echo "MPD_SECRETWORD=$SW" | cat > /etc/mpd.conf
+#chmod 600 /etc/mpd.conf
+#echo "finished setting up /etc/mpd.conf with value MPD_SECRETWORD=$SW"
+#
 #setup up mpd daemon on this node
 mpd --daemon
 #GET PORT NUMBERS HERE
 PORTNUM=`mpdtrace -l | cut -d"_" -f 2 | cut -d" " -f1`
 HOSTNAME=`mpdtrace -l | cut -d"_" -f 2 | cut -d"(" -f2 | cut -d")" -f1`
+echo portnum is $PORTNUM
+echo hostname is $HOSTNAME
+
+#echo "setting up mpd conf file on slaves"
+#for i in `cat $PBS_NODEFILE`; do echo deleting; ssh -o StrictHostKeyChecking=no $i rm /etc/mpd.conf;ssh
$i "echo MPD_SECRETWORD=$SW > /etc/mpd.conf"; echo new is; ssh $i cat /etc/mpd.conf; ssh
$i "chmod 600 /etc/mpd.conf"; done                                                       
             # for i in `cat $PBS_NODEFILE`; do ssh -o StrictHostKeyChecking=no $i echo "MPD_SECRETWORD=$SW"|cat>/etc/mpd.conf;
done
 
-echo "running mpd daemon on all slave"
-for i in `cat $PBS_NODEFILE`; do ssh -o StrictHostKeyChecking=no $i cd /root/nexus-ec2; /root/nexus-ec2/setup-mpd-conf
$1; done
-#echo "running this command on slaves: ssh $i mpd --daemon -h $HOSTNAME -p $PORTNUM ; done"
 # set up mpi daemon on all slave nodes given to us by torque in $PBS_NODEFILE
 for i in `cat $PBS_NODEFILE`; do ssh -o StrictHostKeyChecking=no $i mpd --daemon -h $HOSTNAME
-p $PORTNUM ; done
+
+echo "exiting with zero"
+exit 0

Modified: incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque?rev=1131705&r1=1131704&r2=1131705&view=diff
==============================================================================
--- incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque (original)
+++ incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque Sun Jun  5 04:59:51
2011
@@ -88,6 +88,6 @@ function installmpi {
 }
 
 #installtorque
-setuptorque
+#setuptorque
 #installslaves
 installmpi



Mime
View raw message