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

   ### 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
   
   Create a task of the Zeppelin type, fill in zeppelinNoteId, 
zeppelinRestEndpoint, and zeppelinParagraphId, save and run it. 
DolphinScheduler A single Zeppelin Paragraph works fine. Re-edit the task, 
clear the Zeppelinhid parameter value, save and re-run the task, and the 
following error message occurs: java.lang.Exception: Unable to call rest api, 
status: 405, statusText: Method Not Allowed, message: Method Not Allowed
        at 
org.apache.zeppelin.client.ZeppelinClient.checkResponse(ZeppelinClient.java:96)
        at 
org.apache.zeppelin.client.ZeppelinClient.queryParagraphResult(ZeppelinClient.java:777)
        at 
org.apache.zeppelin.client.ZeppelinClient.submitParagraph(ZeppelinClient.java:676)
        at 
org.apache.zeppelin.client.ZeppelinClient.executeParagraph(ZeppelinClient.java:602)
        at 
org.apache.zeppelin.client.ZeppelinClient.executeParagraph(ZeppelinClient.java:618)
        at 
org.apache.dolphinscheduler.plugin.task.zeppelin.ZeppelinTask.handle(ZeppelinTask.java:131)
        at 
org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.executeTask(DefaultWorkerDelayTaskExecuteRunnable.java:49)
        at 
org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:174)
        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-12-12 09:00:04.785 +0000 TaskLogLogger-class 
org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable:[179]
 - [WorkflowInstance-32][TaskInstance-113] - Task execute failed, due to meet 
an exception
   org.apache.dolphinscheduler.plugin.task.api.TaskException: Execute 
ZeppelinTask exception
        at 
org.apache.dolphinscheduler.plugin.task.zeppelin.ZeppelinTask.handle(ZeppelinTask.java:149)
        at 
org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.executeTask(DefaultWorkerDelayTaskExecuteRunnable.java:49)
        at 
org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:174)
        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)
   
   
![425bb1edf08925e793323ca01681058](https://user-images.githubusercontent.com/120378101/207035882-40dd22b4-5d43-42e0-b9a4-a2ae859c09b9.png)
   
![e878b458897438e74af3f0e39bd1359](https://user-images.githubusercontent.com/120378101/207035919-bc022fc0-af3c-4012-86b4-47e86565594c.png)
   
   
   ### What you expected to happen
   
   The zeppelinParagraphId parameter is optional, and when I clear it, the 
Zeppelin task should normally implement the entire Zeppelin NoteBook.
   This bug occurs because after clearing the zeppelinParagraphId parameter's 
value, the zeppelinParagraphId field becomes an empty string, The code calls 
the zeppelin task only if it executes the entire notebook if 
zeppelinParagraphId equals null. Otherwise, it executes a single Paragraph. 
zeppelinParagraphId reports an error.
   
   ### How to reproduce
   
   Create a task of the Zeppelin type, fill in zeppelinNoteId, 
zeppelinRestEndpoint, and zeppelinParagraphId, save and run it. 
DolphinScheduler A single Zeppelin Paragraph works fine. Re-edit the task, 
clear the Zeppelinhid parameter value, save and re-run the task, and the 
following error message occurs: java.lang.Exception: Unable to call rest api, 
status: 405, statusText: Method Not Allowed, message: Method Not Allowed
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] 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