public class ZombieCluster extends AbstractClusterStory
ZombieCluster rebuilds the cluster topology using the information
obtained from job history logs.machineNodes, maximumDistance, mNodeMap, mNodesFlattened, rackNodes, rNodeMap| Constructor and Description |
|---|
ZombieCluster(InputStream input,
MachineNode defaultNode)
Construct a homogeneous cluster.
|
ZombieCluster(LoggedNetworkTopology topology,
MachineNode defaultNode)
Construct a homogeneous cluster.
|
ZombieCluster(org.apache.hadoop.fs.Path path,
MachineNode defaultNode,
org.apache.hadoop.conf.Configuration conf)
Construct a homogeneous cluster.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getClusterTopology()
Get the cluster topology tree.
|
buildMachineNodeMap, buildRackNodeMap, distance, getMachineByName, getMachines, getMaximumDistance, getRackByName, getRacks, getRandomMachines, parseTopologyTreepublic ZombieCluster(LoggedNetworkTopology topology, MachineNode defaultNode)
MachineNodes, and the parents of MachineNodes are
RackNodes. We also expect all leaf nodes are on the same level.topology - The network topology.defaultNode - The default node setting.public ZombieCluster(org.apache.hadoop.fs.Path path,
MachineNode defaultNode,
org.apache.hadoop.conf.Configuration conf)
throws IOException
MachineNodes, and the parents of MachineNodes are
RackNodes. We also expect all leaf nodes are on the same level.path - Path to the JSON-encoded topology file.conf - defaultNode - The default node setting.IOExceptionpublic ZombieCluster(InputStream input, MachineNode defaultNode) throws IOException
MachineNodes, and the parents of MachineNodes are
RackNodes. We also expect all leaf nodes are on the same level.input - The input stream for the JSON-encoded topology file.defaultNode - The default node setting.IOExceptionpublic Node getClusterTopology()
ClusterStoryCopyright © 2008–2020 Apache Software Foundation. All rights reserved.