Package eu.stratosphere.configuration

Examples of eu.stratosphere.configuration.Configuration


    compareResultsByLinesInMemory(EXPECTED, resultPath);
  }

  @Parameters
  public static Collection<Object[]> getConfigurations() {
    Configuration config = new Configuration();
    config.setInteger("EnumTrianglesTest#NoSubtasks", 4);
    return toParameterList(config);
  }
View Full Code Here


    return plan;
  }

  @Parameters
  public static Collection<Object[]> getConfigurations() {
    Configuration config1 = new Configuration();
    config1.setInteger("NumSubtasks", 4);
    config1.setInteger("NumIterations", 5);
    return toParameterList(config1);
  }
View Full Code Here

    compareResultsByLinesInMemory(EXPECTED_RESULT, resultPath);
  }

  @Parameters
  public static Collection<Object[]> getConfigurations() {
    Configuration config = new Configuration();
    config.setInteger("TPCHQuery10Test#NoSubtasks", 4);
    return toParameterList(config);
  }
View Full Code Here

  public static Collection<Object[]> getConfigurations() throws FileNotFoundException, IOException {

    LinkedList<Configuration> tConfigs = new LinkedList<Configuration>();

    for(int i=1; i <= NUM_PROGRAMS; i++) {
      Configuration config = new Configuration();
      config.setInteger("ProgramId", i);
      tConfigs.add(config);
    }
   
    return toParameterList(tConfigs);
  }
View Full Code Here

    compareResultsByLinesInMemory(EXPECTED, resultPath);
  }

  @Parameters
  public static Collection<Object[]> getConfigurations() {
    Configuration config = new Configuration();
    config.setInteger("EnumTrianglesTest#NumSubtasks", 4);
    return toParameterList(config);
  }
View Full Code Here

    };

    for (String localStrategy : localStrategies) {
      for (String shipStrategy : shipStrategies) {

        Configuration config = new Configuration();
        config.setString("CrossTest#LocalStrategy", localStrategy);
        config.setString("CrossTest#ShipStrategy", shipStrategy);
        config.setInteger("CrossTest#NoSubtasks", 4);

        tConfigs.add(config);
      }
    }
View Full Code Here

      ps.println(SECOND);
      ps.close();
     
      TextInputFormat inputFormat = new TextInputFormat(new Path(tempFile.toURI().toString()));
     
      Configuration parameters = new Configuration();
      inputFormat.configure(parameters);
     
      FileInputSplit[] splits = inputFormat.createInputSplits(1);
      assertTrue("expected at least one input split", splits.length >= 1);
     
View Full Code Here

      wrt.close();
     
      TextInputFormat inputFormat = new TextInputFormat(new Path(tempFile.toURI().toString()));
      inputFormat.setFilePath(tempFile.toURI().toString());
     
      Configuration parameters = new Configuration();
      inputFormat.configure(parameters);
     
      inputFormat.setDelimiter(delimiter);
     
      FileInputSplit[] splits = inputFormat.createInputSplits(1);
View Full Code Here

   
    if(OperatingSystem.isWindows()) {
      return;
    }
   
    Configuration config = new Configuration();
    ExternalProcessInputSplit split = new ExternalProcessInputSplit(1, 1, this.neverEndingCommand);
   
    boolean processDestroyed = false;
    try {
      format.configure(config);
View Full Code Here

   
    if(OperatingSystem.isWindows()) {
      return;
    }
   
    Configuration config = new Configuration();
    ExternalProcessInputSplit split = new ExternalProcessInputSplit(1, 1, failingCommand);
   
    format.configure(config);
    boolean invalidExitCode = false;
    try {
      format.open(split);
      format.waitForProcessToFinish();
      format.close();
    } catch (IOException e) {
      Assert.fail();
    } catch (InterruptedException e) {
      Assert.fail();
    } catch (RuntimeException e) {
      if(e.getMessage().startsWith("External process did not finish with an allowed exit code:")) {
        invalidExitCode = true
      }
    }
    Assert.assertTrue(invalidExitCode);
   
    invalidExitCode = false;
    config.setString(ExternalProcessInputFormat.ALLOWEDEXITCODES_PARAMETER_KEY,"0,1,2");
    format.configure(config);
    try {
      format.open(split);
      format.waitForProcessToFinish();
      format.close();
View Full Code Here

TOP

Related Classes of eu.stratosphere.configuration.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.