hyliu777 opened a new issue, #12368:
URL: https://github.com/apache/dolphinscheduler/issues/12368

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   [LOG-PATH]: 
/opt/dolphinscheduler/worker-server/logs/20221014/7195111179040_2-15-22.log, 
[HOST]:  Host{address='172.16.10.15:1234', ip='172.16.10.15', port=1234}
   [INFO] 2022-10-14 08:44:09.886 +0800 - Begin to pulling task
   [INFO] 2022-10-14 08:44:09.887 +0800 - Begin to initialize task
   [INFO] 2022-10-14 08:44:09.887 +0800 - Set task startTime: Fri Oct 14 
08:44:09 CST 2022
   [INFO] 2022-10-14 08:44:09.887 +0800 - Set task envFile: 
/opt/dolphinscheduler/worker-server/conf/dolphinscheduler_env.sh
   [INFO] 2022-10-14 08:44:09.887 +0800 - Set task appId: 15_22
   [INFO] 2022-10-14 08:44:09.887 +0800 - End initialize task
   [INFO] 2022-10-14 08:44:09.888 +0800 - Set task status to 
TaskExecutionStatus{code=1, desc='running'}
   [INFO] 2022-10-14 08:44:09.888 +0800 - TenantCode:root check success
   [INFO] 2022-10-14 08:44:09.888 +0800 - 
ProcessExecDir:/tmp/dolphinscheduler/exec/process/7193666667040/7195111179040_2/15/22
 check success
   [INFO] 2022-10-14 08:44:09.888 +0800 - Resources:{} check success
   [INFO] 2022-10-14 08:44:09.889 +0800 - Task plugin: DATAX create success
   [INFO] 2022-10-14 08:44:09.889 +0800 - datax task params 
{"localParams":[],"resourceList":[],"customConfig":0,"dsType":"MYSQL","dataSource":1,"dtType":"MYSQL","dataTarget":1,"sql":"select
 id,name from 
ods.ods_jdx_site","targetTable":"ods_jdx_site_copy1","jobSpeedByte":0,"jobSpeedRecord":1000,"preStatements":[],"postStatements":[],"xms":1,"xmx":1}
   [INFO] 2022-10-14 08:44:09.889 +0800 - Success initialized task plugin 
instance success
   [INFO] 2022-10-14 08:44:09.889 +0800 - Success set taskVarPool: null
   [ERROR] 2022-10-14 08:44:09.890 +0800 - datax task error
   java.lang.NullPointerException: null
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.addCustomParameters(DataxTask.java:426)
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.buildShellCommandFile(DataxTask.java:400)
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:157)
        at 
org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.executeTask(DefaultWorkerDelayTaskExecuteRunnable.java:48)
        at 
org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:151)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at 
com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
        at 
com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
        at 
com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   [ERROR] 2022-10-14 08:44:09.890 +0800 - Task execute failed, due to meet an 
exception
   org.apache.dolphinscheduler.plugin.task.api.TaskException: Execute DataX 
task failed
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:171)
        at 
org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.executeTask(DefaultWorkerDelayTaskExecuteRunnable.java:48)
        at 
org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:151)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at 
com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
        at 
com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
        at 
com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.NullPointerException: null
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.addCustomParameters(DataxTask.java:426)
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.buildShellCommandFile(DataxTask.java:400)
        at 
org.apache.dolphinscheduler.plugin.task.datax.DataxTask.handle(DataxTask.java:157)
        ... 9 common frames omitted
   [INFO] 2022-10-14 08:44:10.900 +0800 - Get a exception when execute the 
task, will send the task execute result to master, the current task execute 
result is TaskExecutionStatus{code=6, desc='failure'}
   
   ### What you expected to happen
   
   task run success
   
   ### How to reproduce
   
   datax task with mysql2mysql
   
   ### Anything else
   
   DATAX_HOME=/opt/datax
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to