[remoteshell]-[k8s deploy 3.4.1 ]-Caused by: java.lang.NullPointerException: null #18158
Unanswered
kailongapple
asked this question in
Q&A
Replies: 1 comment
|
Encountering same issue, may i know if you found any solution? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
查看日志
[LOG-PATH]: /opt/dolphinscheduler/logs/20260411/169662945487616/23/119/505.log, [HOST]: dolphinscheduler-worker-0.dolphinscheduler-worker-headless:1234
2026-04-11 10:46:59.656 INFO - 🐬 Initialize Task Context
2026-04-11 10:46:59.661 INFO - Tenant is not enabled, will use the bootstrap: root user as tenant
2026-04-11 10:46:59.661 INFO - TenantCode: root check successfully
2026-04-11 10:46:59.662 INFO - TaskInstance working directory: /tmp/dolphinscheduler/exec/process/505 create successfully
2026-04-11 10:46:59.670 INFO - Download resources successfully: ResourceContext(resourceItemMap={})
2026-04-11 10:46:59.688 INFO - 🐬 Load Task Instance Plugin
2026-04-11 10:46:59.689 INFO - Initialized physicalTask: REMOTESHELL successfully
2026-04-11 10:46:59.689 INFO - shell task params {"localParams":[],"rawScript":"#!/bin/bash\r\necho 'zhangsan';","resourceList":[],"type":"SSH","datasource":6}
2026-04-11 10:47:00.503 INFO - getOrCreateProvider(BC) created instance of org.bouncycastle.jce.provider.BouncyCastleProvider
2026-04-11 10:47:00.827 INFO - No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
2026-04-11 10:47:00.881 INFO - Set taskVarPool: null successfully
2026-04-11 10:47:00.881 INFO - 🐬 Execute Task Instance
2026-04-11 10:47:00.883 INFO - raw script : #!/bin/bash
#!/bin/bash
echo 'zhangsan';
echo DOLPHINSCHEDULER-REMOTE-SHELL-TASK-STATUS-$?
2026-04-11 10:47:01.945 ERROR - shell task error
org.apache.dolphinscheduler.plugin.task.api.TaskException: Remote shell task error
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.run(RemoteExecutor.java:105)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteShellTask.handle(RemoteShellTask.java:104)
at org.apache.dolphinscheduler.server.worker.executor.PhysicalTaskExecutor.doTriggerTaskPlugin(PhysicalTaskExecutor.java:77)
at org.apache.dolphinscheduler.task.executor.AbstractTaskExecutor.start(AbstractTaskExecutor.java:81)
at org.apache.dolphinscheduler.task.executor.worker.TaskExecutorWorker.start(TaskExecutorWorker.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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:750)
Caused by: java.lang.NullPointerException: null
at java.io.Reader.(Reader.java:78)
at java.io.InputStreamReader.(InputStreamReader.java:113)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.runRemoteAndProcessLines(RemoteExecutor.java:243)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.runRemote(RemoteExecutor.java:231)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.getTaskPid(RemoteExecutor.java:207)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.run(RemoteExecutor.java:95)
... 9 common frames omitted
2026-04-11 10:47:01.946 ERROR - PhysicalTaskExecutor{id=505, name=test-remoteshell, stat=RUNNING} execute failed
org.apache.dolphinscheduler.plugin.task.api.TaskException: Execute shell task error
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteShellTask.handle(RemoteShellTask.java:110)
at org.apache.dolphinscheduler.server.worker.executor.PhysicalTaskExecutor.doTriggerTaskPlugin(PhysicalTaskExecutor.java:77)
at org.apache.dolphinscheduler.task.executor.AbstractTaskExecutor.start(AbstractTaskExecutor.java:81)
at org.apache.dolphinscheduler.task.executor.worker.TaskExecutorWorker.start(TaskExecutorWorker.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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:750)
Caused by: org.apache.dolphinscheduler.plugin.task.api.TaskException: Remote shell task error
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.run(RemoteExecutor.java:105)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteShellTask.handle(RemoteShellTask.java:104)
... 8 common frames omitted
Caused by: java.lang.NullPointerException: null
at java.io.Reader.(Reader.java:78)
at java.io.InputStreamReader.(InputStreamReader.java:113)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.runRemoteAndProcessLines(RemoteExecutor.java:243)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.runRemote(RemoteExecutor.java:231)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.getTaskPid(RemoteExecutor.java:207)
at org.apache.dolphinscheduler.plugin.task.remoteshell.RemoteExecutor.run(RemoteExecutor.java:95)
... 9 common frames omitted
2026-04-11 10:47:02.284 INFO - 🐬 Finalize Task Instance
2026-04-11 10:47:02.287 INFO - FINALIZE_SESSION
2026-04-11 10:47:02.288 INFO - Deleted task exec directory: /tmp/dolphinscheduler/exec/process/505
空指针,是缺少什么配置项吗
All reactions