Commit a420644a authored by Eights's avatar Eights
Browse files

sqoop task source type or target type is null throw exception

parent a64c2b38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ public class SqoopJobGenerator {
        if (SqoopJobType.TEMPLATE.getDescp().equals(sqoopParameters.getJobType())) {
            createSqoopJobGenerator(sqoopParameters.getSourceType(),sqoopParameters.getTargetType());
            if(sourceGenerator == null || targetGenerator == null){
                return null;
                throw new RuntimeException("sqoop task source type or target type is null");
            }

            sqoopScripts =  commonGenerator.generate(sqoopParameters)