Examples of ExportJobConfiguration


Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableName() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    String fullTableName = executor.delimitIdentifier(schemalessTableName);

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableNameWithTableColumns() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    String fullTableName = executor.delimitIdentifier(schemalessTableName);

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableSql() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
    jobConf.table.sql = schemalessTableSql;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableNameWithSchema() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    String fullTableName = executor.delimitIdentifier(schemaName) + "." + executor.delimitIdentifier(tableName);

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableNameWithTableColumnsWithSchema() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    String fullTableName = executor.delimitIdentifier(schemaName) + "." + executor.delimitIdentifier(tableName);

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
View Full Code Here

Examples of org.apache.sqoop.connector.jdbc.configuration.ExportJobConfiguration

  }

  @SuppressWarnings("unchecked")
  public void testTableSqlWithSchema() throws Exception {
    ConnectionConfiguration connConf = new ConnectionConfiguration();
    ExportJobConfiguration jobConf = new ExportJobConfiguration();

    connConf.connection.jdbcDriver = GenericJdbcTestConstants.DRIVER;
    connConf.connection.connectionString = GenericJdbcTestConstants.URL;
    jobConf.table.schemaName = schemaName;
    jobConf.table.sql = tableSql;
View Full Code Here

Examples of org.apache.sqoop.framework.configuration.ExportJobConfiguration

    }
  }

  private Validation validateExportJob(Object jobConfiguration) {
    Validation validation = new Validation(ExportJobConfiguration.class);
    ExportJobConfiguration configuration = (ExportJobConfiguration)jobConfiguration;

    validateInputForm(validation, configuration.input);
    validateThrottingForm(validation, configuration.throttling);

    return validation;
View Full Code Here

Examples of org.apache.sqoop.framework.configuration.ExportJobConfiguration

    // Delegate rest of the job to execution engine
    executionEngine.prepareImportSubmission(request);
  }

  private void prepareExportSubmission(SubmissionRequest request) {
    ExportJobConfiguration jobConfiguration = (ExportJobConfiguration) request
      .getConfigFrameworkJob();

    // We're directly moving configured number of extractors and loaders to
    // underlying request object. In the future we might need to throttle this
    // count based on other running jobs to meet our SLAs.
View Full Code Here

Examples of org.apache.sqoop.framework.configuration.ExportJobConfiguration

   {@inheritDoc}
   */
  @Override
  public void prepareExportSubmission(SubmissionRequest gRequest) {
    MRSubmissionRequest request = (MRSubmissionRequest) gRequest;
    ExportJobConfiguration jobConf = (ExportJobConfiguration) request.getConfigFrameworkJob();

    // Add jar dependencies
    addDependencies(request);

    // Configure map-reduce classes for import
View Full Code Here

Examples of org.apache.sqoop.framework.configuration.ExportJobConfiguration

    // Delegate rest of the job to execution engine
    executionEngine.prepareImportSubmission(request);
  }

  private static void prepareExportSubmission(SubmissionRequest request) {
    ExportJobConfiguration jobConfiguration = (ExportJobConfiguration) request.getConfigFrameworkJob();

    // We're directly moving configured number of extractors and loaders to
    // underlying request object. In the future we might need to throttle this
    // count based on other running jobs to meet our SLAs.
    request.setExtractors(jobConfiguration.throttling.extractors);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.