org.apache.hadoop.tools.rumen
Class ZombieCluster

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.AbstractClusterStory
      extended by org.apache.hadoop.tools.rumen.ZombieCluster
All Implemented Interfaces:
ClusterStory

public class ZombieCluster
extends AbstractClusterStory

ZombieCluster rebuilds the cluster topology using the information obtained from job history logs.


Field Summary
 
Fields inherited from class org.apache.hadoop.tools.rumen.AbstractClusterStory
machineNodes, maximumDistance, mNodeMap, mNodesFlattened, rackNodes, rNodeMap
 
Constructor Summary
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.
 
Method Summary
 Node getClusterTopology()
          Get the cluster topology tree.
 
Methods inherited from class org.apache.hadoop.tools.rumen.AbstractClusterStory
buildMachineNodeMap, buildRackNodeMap, distance, getMachineByName, getMachines, getMaximumDistance, getRackByName, getRacks, getRandomMachines, parseTopologyTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZombieCluster

public ZombieCluster(LoggedNetworkTopology topology,
                     MachineNode defaultNode)
Construct a homogeneous cluster. We assume that the leaves on the topology are MachineNodes, and the parents of MachineNodes are RackNodes. We also expect all leaf nodes are on the same level.

Parameters:
topology - The network topology.
defaultNode - The default node setting.

ZombieCluster

public ZombieCluster(org.apache.hadoop.fs.Path path,
                     MachineNode defaultNode,
                     org.apache.hadoop.conf.Configuration conf)
              throws IOException
Construct a homogeneous cluster. We assume that the leaves on the topology are MachineNodes, and the parents of MachineNodes are RackNodes. We also expect all leaf nodes are on the same level.

Parameters:
path - Path to the JSON-encoded topology file.
conf -
defaultNode - The default node setting.
Throws:
IOException

ZombieCluster

public ZombieCluster(InputStream input,
                     MachineNode defaultNode)
              throws IOException
Construct a homogeneous cluster. We assume that the leaves on the topology are MachineNodes, and the parents of MachineNodes are RackNodes. We also expect all leaf nodes are on the same level.

Parameters:
input - The input stream for the JSON-encoded topology file.
defaultNode - The default node setting.
Throws:
IOException
Method Detail

getClusterTopology

public Node getClusterTopology()
Description copied from interface: ClusterStory
Get the cluster topology tree.

Returns:
The root node of the cluster topology tree.


Copyright © 2009 The Apache Software Foundation