Hi Team,
I came across this thread Jar Not Found
<https://lists.apache.org/thread/0gz5qf1bnvk7c6ccc5qrz0xm30h3nbyv>. In
which it is discussed that
"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 use the existing jdbc-driver
and sql-gateway.".
It would be helpful for me if you could provide more information on  how I
could achieve it using *RestClusterClient*. Thanks and Regards Muazim Wani

On Tue, 5 Sept 2023 at 22:01, Muazim Wani <muazim1...@gmail.com> wrote:

> Hello Team,
>
> I hope this email finds you well. I've been working on disabling job
> submissions from the Flink UI, and I am facing an issue with the
> configuration. Specifically, I've set web.submit.enable = false to
> achieve this. However, it seems that this configuration change is
> preventing the Flink Kubernetes Operator from submitting jobs to the
> JobManager.
>
> According to the documentation, disabling the web.submit.enable flag
> should still allow job submissions via REST APIs. However, when I disable
> the flag, I'm encountering an error message that says *"[Not found:
> /v1/jars/upload].*" (Also here I feel this "v1" is getting appended in
> path somehow) Here's the corresponding log entry:
>
> *Status | Error | UPGRADING |
> {"type":"org.apache.flink.kubernetes.operator.exception.ReconciliationException","message":"java.util.concurrent.ExecutionException:
> org.apache.flink.runtime.rest.util.RestClientException: [Not found:
> /v1/jars/upload]","throwableList":[{"type":"org.apache.flink.runtime.rest.util.RestClientException","message":"[Not
> found: /v1/jars/upload]","additionalMetadata":{"httpResponseCode":404}}]}*
>
> I've also come across a Jira issue, FLINK-26808
> <https://issues.apache.org/jira/browse/FLINK-26808?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel>,
> which mentions that disabling web submission disables all handlers related
> to web submission. This statement appears to contradict the information in
> the Flink documentation.
>
> Could you please provide some guidance or insights on how to correctly
> configure Flink to disable UI job submissions while allowing submissions
> via REST APIs? Any assistance on this matter would be greatly appreciated.
>
> Thank you for your help.
>
> Best regards, Muazim Wani
>

Reply via email to