|
|
@ -17,21 +17,21 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.plugin.task.datax; |
|
|
|
package org.apache.dolphinscheduler.plugin.task.datax; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static org.apache.dolphinscheduler.plugin.task.datasource.PasswordUtils.decodePassword; |
|
|
|
import static org.apache.dolphinscheduler.spi.task.TaskConstants.EXIT_CODE_FAILURE; |
|
|
|
import static org.apache.dolphinscheduler.spi.task.TaskConstants.EXIT_CODE_FAILURE; |
|
|
|
import static org.apache.dolphinscheduler.spi.task.TaskConstants.RWXR_XR_X; |
|
|
|
import static org.apache.dolphinscheduler.spi.task.TaskConstants.RWXR_XR_X; |
|
|
|
import static org.apache.dolphinscheduler.plugin.task.datasource.PasswordUtils.decodePassword; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.AbstractTaskExecutor; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.AbstractTaskExecutor; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.ShellCommandExecutor; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.ShellCommandExecutor; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.TaskResponse; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.TaskResponse; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.plugin.task.datasource.BaseConnectionParam; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.plugin.task.datasource.DatasourceUtil; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.util.MapUtils; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.util.MapUtils; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.util.OSUtils; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.util.OSUtils; |
|
|
|
import org.apache.dolphinscheduler.spi.enums.DbType; |
|
|
|
import org.apache.dolphinscheduler.spi.enums.DbType; |
|
|
|
import org.apache.dolphinscheduler.spi.enums.Flag; |
|
|
|
import org.apache.dolphinscheduler.spi.enums.Flag; |
|
|
|
import org.apache.dolphinscheduler.spi.task.AbstractParameters; |
|
|
|
import org.apache.dolphinscheduler.spi.task.AbstractParameters; |
|
|
|
import org.apache.dolphinscheduler.spi.task.Property; |
|
|
|
import org.apache.dolphinscheduler.spi.task.Property; |
|
|
|
import org.apache.dolphinscheduler.plugin.task.datasource.BaseConnectionParam; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.plugin.task.datasource.DatasourceUtil; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.spi.task.paramparser.ParamUtils; |
|
|
|
import org.apache.dolphinscheduler.spi.task.paramparser.ParamUtils; |
|
|
|
import org.apache.dolphinscheduler.spi.task.paramparser.ParameterUtils; |
|
|
|
import org.apache.dolphinscheduler.spi.task.paramparser.ParameterUtils; |
|
|
|
import org.apache.dolphinscheduler.spi.task.request.DataxTaskRequest; |
|
|
|
import org.apache.dolphinscheduler.spi.task.request.DataxTaskRequest; |
|
|
@ -148,7 +148,7 @@ public class DataxTask extends AbstractTaskExecutor { |
|
|
|
Thread.currentThread().setName(threadLoggerInfoName); |
|
|
|
Thread.currentThread().setName(threadLoggerInfoName); |
|
|
|
|
|
|
|
|
|
|
|
// replace placeholder,and combine local and global parameters
|
|
|
|
// replace placeholder,and combine local and global parameters
|
|
|
|
Map<String, Property> paramsMap = ParamUtils.convert(taskExecutionContext,getParameters()); |
|
|
|
Map<String, Property> paramsMap = ParamUtils.convert(taskExecutionContext, getParameters()); |
|
|
|
if (MapUtils.isEmpty(paramsMap)) { |
|
|
|
if (MapUtils.isEmpty(paramsMap)) { |
|
|
|
paramsMap = new HashMap<>(); |
|
|
|
paramsMap = new HashMap<>(); |
|
|
|
} |
|
|
|
} |
|
|
|