public final class MPIMasterStarter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
commandAsAString(java.lang.String[] commandArray) |
static boolean |
createHostFile(java.util.ArrayList<java.lang.String> ipList,
int workersPerPod)
create hostfile for mpirun command
first line in the file is the ip of this pod
other lines are unordered
each line has one ip
|
static void |
executeMpirun(java.lang.String[] command)
send mpirun command to shell
|
static java.lang.String[] |
generateCheckSshCommand(java.util.ArrayList<java.lang.String> podIPs) |
static java.lang.String[] |
generateMPIrunCommand(java.lang.String className,
int workersPerPod,
java.lang.String jobMasterIP,
java.lang.String logPropsFile,
java.lang.String jvmMemory) |
static void |
main(java.lang.String[] args) |
static boolean |
runScript(java.lang.String[] command)
send check ssh script run command to shell
|
public static void main(java.lang.String[] args)
public static boolean createHostFile(java.util.ArrayList<java.lang.String> ipList, int workersPerPod)
public static java.lang.String[] generateMPIrunCommand(java.lang.String className, int workersPerPod, java.lang.String jobMasterIP, java.lang.String logPropsFile, java.lang.String jvmMemory)
public static void executeMpirun(java.lang.String[] command)
public static java.lang.String commandAsAString(java.lang.String[] commandArray)
public static java.lang.String[] generateCheckSshCommand(java.util.ArrayList<java.lang.String> podIPs)
public static boolean runScript(java.lang.String[] command)