@InterfaceAudience.Private @InterfaceStability.Unstable public class SLSUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JOB_TYPE |
| Constructor and Description |
|---|
SLSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<SLSRunner.NodeDetails> |
generateNodes(int numNodes,
int numRacks) |
static String[] |
getRackHostName(String hostname) |
static Set<SLSRunner.NodeDetails> |
parseNodesFromNodeFile(String nodeFile,
org.apache.hadoop.yarn.api.records.Resource nmDefaultResource)
parse the input node file, return each host name
sample input: label1(exclusive=true),label2(exclusive=false),label3
|
static Set<SLSRunner.NodeDetails> |
parseNodesFromRumenTrace(String jobTrace)
parse the rumen trace file, return each host name
|
static Set<SLSRunner.NodeDetails> |
parseNodesFromSLSTrace(String jobTrace)
parse the sls trace file, return each host name
|
public static final String DEFAULT_JOB_TYPE
public static Set<SLSRunner.NodeDetails> parseNodesFromRumenTrace(String jobTrace) throws IOException
IOExceptionpublic static Set<SLSRunner.NodeDetails> parseNodesFromSLSTrace(String jobTrace) throws IOException
IOExceptionpublic static Set<SLSRunner.NodeDetails> parseNodesFromNodeFile(String nodeFile, org.apache.hadoop.yarn.api.records.Resource nmDefaultResource) throws IOException
IOExceptionpublic static Set<SLSRunner.NodeDetails> generateNodes(int numNodes, int numRacks)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.