eu.stratosphere.nephele.example.speedtest.SpeedTest Maven / Gradle / Ivy
/***********************************************************************************************************************
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
**********************************************************************************************************************/
package eu.stratosphere.nephele.example.speedtest;
import java.io.File;
import java.io.IOException;
import eu.stratosphere.api.common.JobExecutionResult;
import eu.stratosphere.configuration.ConfigConstants;
import eu.stratosphere.configuration.Configuration;
import eu.stratosphere.core.fs.Path;
import eu.stratosphere.nephele.client.JobClient;
import eu.stratosphere.nephele.client.JobExecutionException;
import eu.stratosphere.nephele.io.DistributionPattern;
import eu.stratosphere.nephele.io.channels.ChannelType;
import eu.stratosphere.nephele.jobgraph.JobGenericInputVertex;
import eu.stratosphere.nephele.jobgraph.JobGenericOutputVertex;
import eu.stratosphere.nephele.jobgraph.JobGraph;
import eu.stratosphere.nephele.jobgraph.JobGraphDefinitionException;
import eu.stratosphere.nephele.jobgraph.JobTaskVertex;
import eu.stratosphere.nephele.util.JarFileCreator;
/**
* This class implements a speed test for Nephele. It's primary purpose is to benchmark the performance of Nephele's
* network channels with different degrees of parallelism.
*
*/
public final class SpeedTest {
/**
* Configuration key to specify the amount of data to be send in GB.
*/
static final String DATA_VOLUME_CONFIG_KEY = "data.volume";
/**
* Entry point to the application.
*
* @param args
* the provided arguments
*/
public static void main(final String[] args) {
// Parse the arguments first
if (args.length < 4) {
System.err
.println("Insufficient number of arguments. Please provide (
© 2015 - 2025 Weber Informatics LLC | Privacy Policy