@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<? extends String> |
generateNodes(int numNodes,
int numRacks) |
static String[] |
getRackHostName(String hostname) |
static Set<String> |
parseNodesFromNodeFile(String nodeFile)
parse the input node file, return each host name
|
static Set<String> |
parseNodesFromRumenTrace(String jobTrace)
parse the rumen trace file, return each host name
|
static Set<String> |
parseNodesFromSLSTrace(String jobTrace)
parse the sls trace file, return each host name
|
public static final String DEFAULT_JOB_TYPE
public static Set<String> parseNodesFromRumenTrace(String jobTrace) throws IOException
IOExceptionpublic static Set<String> parseNodesFromSLSTrace(String jobTrace) throws IOException
IOExceptionpublic static Set<String> parseNodesFromNodeFile(String nodeFile) throws IOException
IOExceptionCopyright © 2008–2019 Apache Software Foundation. All rights reserved.