Login  Register

Re: [Help Required:]-Unable to submit job from REST API

Posted by Yun Gao on Dec 21, 2020; 3:47pm
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Help-Required-Unable-to-submit-job-from-REST-API-tp40244p40248.html


Hi Puneet,

   From the doc it seems submitting a job via rest api should send a post request to /jars/:jarid/run [1]. The response "Not Found" should means the REST API server does not know the request type.

Best,
 Yun





 [1] https://ci.apache.org/projects/flink/flink-docs-release-1.12/ops/rest_api.html#jars-jarid-run
------------------------------------------------------------------
Sender:Puneet Kinra<[hidden email]>
Date:2020/12/21 19:47:31
Recipient:user<[hidden email]>
Theme:[Help Required:]-Unable to submit job from REST API

oHi All

Unable to submit job from REST API (Flink-Monitoring API),

Steps followed:

1) Load the jar using load api.
2) can see the jar in the /tmp/flink-web folder.
3) Try to run the jar using the following.

Request

http://host-ip/45f30ad6-c8fb-4c2c-9fbf-c4f56acdd9d9_stream-processor-jar-with-dependencies.jar/run?programArgs=/users/puneet/app/orchestrator/PropertiesStream_back.json&entryClass=com.orchestrator.flowExecution.GraphExecutor  

Response:

{
    "errors": [
        "Not found."
    ]
}

--
Cheers 

Puneet Kinra

Mobile:+918800167808 | Skype : [hidden email]

e-mail :[hidden email]