Glad to hear it! Thanks for confirming that it works. Piotrek
śr., 26 maj 2021 o 12:59 Barak Ben Nathan <barak.bennat...@earnix.com> napisał(a): > > > Hi Piotrek, > > > > This is exactly what I was searching for. Thanks! > > > > Barak > > > > *From:* Piotr Nowojski <piotr.nowoj...@gmail.com> > *Sent:* Wednesday, May 26, 2021 9:59 AM > *To:* Barak Ben Nathan <barak.bennat...@earnix.com> > *Cc:* user@flink.apache.org > *Subject:* Re: Managing Jobs entirely with Flink Monitoring API > > > > *CAUTION*: external source > > Hi Barak, > > > > Before starting the JobManager I don't think there is any API running at > all. If you want to be able to submit/stop multiple jobs to the same > cluster session mode is indeed the way to go. But first you need to to > start the cluster ( start-cluster.sh ) [1] > > > > Piotrek > > > > [1] > https://ci.apache.org/projects/flink/flink-docs-master/docs/deployment/resource-providers/standalone/overview/ > <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fci.apache.org%2Fprojects%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fstandalone%2Foverview%2F&data=04%7C01%7CBarak.BenNathan%40earnix.com%7Ce8aea4aaede641b4b14d08d92013c9f8%7Cae9992508a9f4ae58a5dce9de7084b84%7C0%7C0%7C637576092081936354%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=dm9qZ%2F1HvxsK7Ye5rBfrWux94GueqhamvESw6VCFqJw%3D&reserved=0> > > > > wt., 25 maj 2021 o 14:10 Barak Ben Nathan <barak.bennat...@earnix.com> > napisał(a): > > > > I want to manage the execution of Flink Jobs programmatically through > Flink Monitoring API. > > > > I.e. I want to run/delete jobs ONLY with the > POST /jars/:jarid/run > POST /jobs/:jobid/stop > API commands. > > > > Now, it seems that the Session Mode may fits my needs: “Session Mode: one > JobManager instance manages multiple jobs sharing the same cluster of > TaskManagers” ( > https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/ > <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fci.apache.org%2Fprojects%2Fflink%2Fflink-docs-release-1.12%2Fdeployment%2F&data=04%7C01%7CBarak.BenNathan%40earnix.com%7Ce8aea4aaede641b4b14d08d92013c9f8%7Cae9992508a9f4ae58a5dce9de7084b84%7C0%7C0%7C637576092081946311%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=4jrnAkqXfrE6aHZvzJVIHNXvCUWP38DgxoVr3G4DsWA%3D&reserved=0> > ) > > However, I couldn’t find a way to start the API server (i.e. a JobManager) > that didn’t already include submitting a JAR file for a job execution. > > Any suggestions? > > Do not click on links or open attachments unless you recognize the sender. > Please use the report button if you believe this email is suspicious. >