public class WordCountDeployer extends InstanceDeployer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODULE_ |
MODULE| Constructor and Description |
|---|
WordCountDeployer()
Initializes the deployer.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
prepareInstancesAndDeploy(int numOfMaps,
java.lang.String filenameBase)
Prepares a set of Map/Reduce instances for the WordCount example and
deploys it on the set of available resources.
|
completedExecution, completedSuccessfully, completedWithErrors, createJobIdentifier, deployOperations, deployOperations, deployOperations, getStatus, initialize, initialize, initialize, killJob, refreshStatus, refreshStatus, resetTrackers, setStartTime, startedExecutionpublic static final java.lang.String MODULE_
public WordCountDeployer()
throws CommunicationsException,
java.io.IOException,
MarshallingException,
DeploymentException
streamingProperties - The properties for streamingCommunicationsException - If there are network problems during communicationsjava.io.IOException - If there are IO problemsMarshallingException - If there are marshalling errorsDeploymentException - If there are deployment related problemspublic static void main(java.lang.String[] args)
public void prepareInstancesAndDeploy(int numOfMaps,
java.lang.String filenameBase)
throws DatasetException,
MapReduceException,
CommunicationsException,
DeploymentException,
MarshallingException,
java.lang.InterruptedException
numOfMaps - The total number of maps being deployedfilenameBase - The directory in which the files are stored.numOfFiles - The total number of files that need to be processedDatasetException - If there are problems initializing the datasetsMapReduceException - If there is a MapReduceExcecution because of problems when
setting up the roles.java.io.IOException - If there are IO problems.CommunicationsException - If there are network problems during communicationsDeploymentException - If there are deployment related problemsMarshallingException - If there are marshalling problems.java.lang.InterruptedException - If there are problems sleeping