Rest api:/jobs/:jobid/stop报405

classic Classic list List threaded Threaded
1 message Options
Moc
Reply | Threaded
Open this post in threaded view
|

Rest api:/jobs/:jobid/stop报405

Moc
大家好:

我在官方文档中看到了/jobs/:jobid/stop这个接口,文档上说这个接口可以生成savepoint。因此我想使用这个接口停止运行在yarn上的flink作业,但是会报错。
请问是不是这个接口当前还用不了?是否有其他代替的接口可用?

接口地址我尝试过:
http://host:8088/proxy/application_1572228642684_1907/v1/jobs/a1f207a50cdebd531824d9a4402162ca/stop
 和
http://host:8088/proxy/application_1572228642684_1907/jobs/a1f207a50cdebd531824d9a4402162ca/stop
使用post方式,调用都会报错:405 HTTP method POST is not supported by this URL

flink版本:1.9.1