Hi,

Currently you can upload a jar job to a flink session cluster, or submit a
job graph to the session cluster with rest api, for example, submit sql
jobs with jdbc driver to sql-gateway, then the gateway will build job graph
and submit it to the session cluster via rest endpoint.

If you configure `web.submit.enable=false` in your cluster, you could not
upload a jar job, but you can still submit jobs via rest endpoint. You can
create your `RestClusterClient` to do that or using the existing
jdbc-driver and sql-gateway.


Best,
Shammon FY

On Tue, Aug 15, 2023 at 12:14 AM patricia lee <plee3...@gmail.com> wrote:

> Hi,
>
> Just to add, when I set back to "true" the web.ui submit property, that is
> when the rest endpoint /jars/upload worked again. But in the documentation
> reference:
>
>
> https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/
>
>
> Disabling the UI doesnt disable the endpoint. Is this the expected
> behavior?
>
> Regards,
> Patricia
>
> On Mon, Aug 14, 2023, 5:07 PM patricia lee <plee3...@gmail.com> wrote:
>
>> Hi,
>>
>> I disabled the web.ui.submit=false, after that uploading jar files via
>> rest endpoint is now throwing 404. In the documentation it says:
>>
>> "Even it is disabled sessions clusters still accept jobs through REST
>> requests (Http calls). This flag only guards the feature to upload jobs in
>> the UI"
>>
>> I also set the io.tmp.dirs to my specified directory.
>>
>>
>> But I can no longer upload jar via rest endpoint.
>>
>>
>> Regards,
>> Patricia
>>
>

Reply via email to