Review Board 1.7.22


SQOOP-866 Sqoop2: Introduce framework validations

Review Request #9330 - Created Feb. 6, 2013 and submitted

Jarek Cecho
SQOOP-866
Reviewers
Sqoop
sqoop-sqoop2
I've put in framework validations.
Tested on real cluster.
core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
Revision 60c8f86636787369909a4549d7380f020d71f82b New Change
[20] 212 lines
[+20] [+] public String getNotificationBaseUrl() {
213
    jobForms.add(new MJobForms(MJob.Type.EXPORT,
213
    jobForms.add(new MJobForms(MJob.Type.EXPORT,
214
      FormUtils.toForms(getJobConfigurationClass(MJob.Type.EXPORT))));
214
      FormUtils.toForms(getJobConfigurationClass(MJob.Type.EXPORT))));
215
    mFramework = new MFramework(connectionForms, jobForms);
215
    mFramework = new MFramework(connectionForms, jobForms);
216

    
   
216

   
217
    // Build validator
217
    // Build validator
218
    validator = new Validator();
218
    validator = new FrameworkValidator();
219
  }
219
  }
220

    
   
220

   
221
  public synchronized void initialize() {
221
  public synchronized void initialize() {
222
    LOG.trace("Begin submission engine manager initialization");
222
    LOG.trace("Begin submission engine manager initialization");
223
    MapContext context = SqoopConfiguration.getInstance().getContext();
223
    MapContext context = SqoopConfiguration.getInstance().getContext();
[+20] [20] 410 lines
core/src/main/java/org/apache/sqoop/framework/FrameworkValidator.java
New File
 
  1. core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java: Loading...
  2. core/src/main/java/org/apache/sqoop/framework/FrameworkValidator.java: Loading...