————— 2022-6-28 —————

Han Tang 13:56
Now there is a 404

Han Tang 13:56
Image 1 (can be viewed in the attachment)

Han Tang 13:56
Image 2 (can be viewed in the attachment)

Mr. Lightning 14:02
It seems that the registered hostname is different from the hostname reported 
in the error

Han Tang 14:09
edge-fj-zhangzhou3-datacenter-04.in.ctcdn.cn:9006 This is the same

Mr. Lightning 14:10
Oh

Mr. Lightning 14:10
dss guide

Mr. Lightning 14:10
What service is this haha ​​😄 I don't have it here

Han Tang 14:12
Oh, the user manual developed by us here

Bao Yang 14:14
I have also encountered this problem, you try this temporary processing method, 
https://github.com/WeBankFinTech/DataSphereStudio/blob/aee9c41a4d23bb60bcc34df08ccc1ae060afa9a4/dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server
 
/src/main/java/com/webank/wedatasphere/dss/flow/execution/entrance/restful/FlowEntranceRestfulApi.java
 this

Bao Yang 14:14
Copy a method, replace the request path with "/{id}/kill" and build a 
dss-flow-execution-server

Bao Yang 14:14
Image 3 (can be viewed in the attachment)

baoyang 14:15
@RequestMapping(path = {"/{id}/killWorkflow"},method = {RequestMethod.GET}) 
copy the entire method, then replace killWorkflow with kill and try

Han Tang 14:16
Is there no kill-related interface in the original dss-flow-entrance service?

Han Tang 14:16
So 404, in fact, gateway forwarding is possible

Bao Yang 14:17
Yes

Bao Yang 14:17
you try first

Mr. Lightning 14:18
I see a button on the page

Mr. Lightning 14:18
Terminate a job stream

Han Tang 14:39
@Shenzhen - Bao Yang  boss, @RequestMapping(path = {"/{id}/killWorkflow"}, 
method = {RequestMethod.GET}) This interface name: killWorkfow, it is specified 
somewhere on the request side, I think it is linkis -Entrance forwarded

baoyang 14:40
He is kill now, you copy this method and change killWorkflow to kill

Han Tang 14:42
@RequestMapping(path = {"/{id}/killWorkflow"}, method = {RequestMethod.GET}) 
change this to @RequestMapping(path = {"/{id}/kill"}, method = 
{RequestMethod.GET })?

Bao Yang 14:42
copy one, then modify

Bao Yang 14:42
killWorkflow don't move

Han Tang 14:45
OK

Han Tang 15:45
@Shenzhen - Bao Yang  boss, after this change, still report 404

Han Tang 15:45
I see the gateway turn around

Bao Yang 15:47
Just started and tried, 404? Or register to eureka and try it later?

Han Tang 15:48
After a while, the service registration is successful

Bao Yang 15:48
Why are you overWrite again? Is this the modified one?

Han Tang 15:52
It inherits the EntranceRestfulApi of linkis, and there is a path in it that is 
/kill, so I override

Han Tang 15:53
Do you use linkis-1.0.3?

Bao Yang 15:54
Yes

Han Tang 15:56
Is this the only method that works in the end?

Bao Yang 15:58
It works on my side, but it looks like 404 on your side after rewriting. Is the 
path different? Did you go to /entrance/{id}/kill instead of 
/dss/flow/entrance? /{id}/kill

Han Tang 16:01
Then I don't try to rewrite

Han Tang 16:06
Does linkis need to modify the request path or something?

Bao Yang 16:07
isn't this in dss

Han Tang 16:07
is linkis this place

Bao Yang 16:08
Isn't FlowEntranceRestfulApi this class? This class is in dss

Han Tang 16:10
Front-end->linkis:/entrance//{id}/kill->dss-flow-entrance:/dss/flow/entrance/{id}/kill

Bao Yang 16:11
https://github.com/WeBankFinTech/DataSphereStudio/blob/aee9c41a4d23bb60bcc34df08ccc1ae060afa9a4/dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/java/com/webank/wedatasphere/dss/flow/
 execution/entrance/restful/FlowEntranceRestfulApi.java

Bao Yang 16:11
Inside dss-flow-execution

Han Tang 16:13
Well, that's it, the screenshot was just wrong.

Bao Yang 16:13
ok. then try again



—————  2022-6-28  —————

Han Tang 13:56
现在有报404

Han Tang 13:56
图片1(可在附件中查看)

Han Tang 13:56
图片2(可在附件中查看)

闪电先生 14:02
看起来注册的hostname和报错的hostname不一样

Han Tang 14:09
edge-fj-zhangzhou3-datacenter-04.in.ctcdn.cn:9006这个是一样的

闪电先生 14:10
噢

闪电先生 14:10
dss guide

闪电先生 14:10
这是什么服务 哈哈😄我这里没有

Han Tang 14:12
哦哦,我们这边自己开发的用户手册

bao洋 14:14
这个问题我也遇到过了,你试试这个临时处理方法, 
https://github.com/WeBankFinTech/DataSphereStudio/blob/aee9c41a4d23bb60bcc34df08ccc1ae060afa9a4/dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/java/com/webank/wedatasphere/dss/flow/execution/entrance/restful/FlowEntranceRestfulApi.java
 这个

bao洋 14:14
copy一个方法, 将请求路径 "/{id}/kill" , build一个 dss-flow-execution-server 替换试试

bao洋 14:14
图片3(可在附件中查看)

bao洋 14:15
@RequestMapping(path = {"/{id}/killWorkflow"},method = {RequestMethod.GET}) 
copy 一整个这个方法,然后 killWorkflow 换成 kill 试试

Han Tang 14:16
是原来的dss-flow-entrance服务里没有kill相关的接口吗

Han Tang 14:16
所以404,其实gateway转发是可以

bao洋 14:17
是的

bao洋 14:17
你先试试

闪电先生 14:18
我看页上面有按钮

闪电先生 14:18
终止作业流

Han Tang 14:39
@深圳-鲍洋 大佬,@RequestMapping(path = {"/{id}/killWorkflow"},method = 
{RequestMethod.GET}) 这个接口名:killWorkfow,在请求端有地方指定的,我看是linkis-entrance转发过来的

bao洋 14:40
他现在是kill没有,你复制一个这个方法,将 killWorkflow 修改为 kill

Han Tang 14:42
@RequestMapping(path = {"/{id}/killWorkflow"},method = 
{RequestMethod.GET})把这个改成@RequestMapping(path = {"/{id}/kill"},method = 
{RequestMethod.GET})?

bao洋 14:42
复制一个,再修改

bao洋 14:42
killWorkflow 不要动

Han Tang 14:45
好的

Han Tang 15:45
@深圳-鲍洋 大佬,这样改后,还报404

Han Tang 15:45
我看gateway转过去

bao洋 15:47
刚刚启动就试了,404 ? 还是注册到eureka过会儿试的?

Han Tang 15:48
过一会,服务注册成功了

bao洋 15:48
你怎么又overWrite啊?是修改的这个吗?

Han Tang 15:52
它这个继承了linkis的EntranceRestfulApi,里面有个path是/kill,所以我override

Han Tang 15:53
大佬用的是linkis-1.0.3吗

bao洋 15:54
是的

Han Tang 15:56
最终只有这个方法起作用吗

bao洋 15:58
我这边是起作用了,但是你那边重写后看起来404,是不是走的路径不一样啊,是不是走到了 /entrance/{id}/kill,没有走到 
/dss/flow/entrance/{id}/kill

Han Tang 16:01
那我不重写试试

Han Tang 16:06
linkis这边需要修改请求路径什么的吗

bao洋 16:07
这不是在dss里面吗

Han Tang 16:07
是linkis的这个地方

bao洋 16:08
FlowEntranceRestfulApi 不是这个类吗?这个类在dss里

Han Tang 16:10
前端-》linkis:/entrance//{id}/kill->dss-flow-entrance:/dss/flow/entrance/{id}/kill

bao洋 16:11
https://github.com/WeBankFinTech/DataSphereStudio/blob/aee9c41a4d23bb60bcc34df08ccc1ae060afa9a4/dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/java/com/webank/wedatasphere/dss/flow/execution/entrance/restful/FlowEntranceRestfulApi.java

bao洋 16:11
dss-flow-execution里面

Han Tang 16:13
嗯,是这样的,刚刚截图错了

bao洋 16:13
ok。那你再试试

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org
For additional commands, e-mail: dev-h...@linkis.apache.org

Reply via email to