Browse Source

sqoop task source type or target type is null throw exception

pull/2/head
Eights 5 years ago
parent
commit
a420644aa3
  1. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/sqoop/generator/SqoopJobGenerator.java

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/sqoop/generator/SqoopJobGenerator.java

@ -69,7 +69,7 @@ public class SqoopJobGenerator {
if (SqoopJobType.TEMPLATE.getDescp().equals(sqoopParameters.getJobType())) { if (SqoopJobType.TEMPLATE.getDescp().equals(sqoopParameters.getJobType())) {
createSqoopJobGenerator(sqoopParameters.getSourceType(),sqoopParameters.getTargetType()); createSqoopJobGenerator(sqoopParameters.getSourceType(),sqoopParameters.getTargetType());
if(sourceGenerator == null || targetGenerator == null){ if(sourceGenerator == null || targetGenerator == null){
return null; throw new RuntimeException("sqoop task source type or target type is null");
} }
sqoopScripts = commonGenerator.generate(sqoopParameters) sqoopScripts = commonGenerator.generate(sqoopParameters)

Loading…
Cancel
Save