[jira] [Commented] (FLINK-26808) [flink v1.14.2] Submit jobs via REST API not working after set web.submit.enable: false

2024-06-02 Thread Robert Metzger (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-26808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851449#comment-17851449
 ] 

Robert Metzger commented on FLINK-26808:


Closing as the PRs have been merged ...

> [flink v1.14.2] Submit jobs via REST API not working after set 
> web.submit.enable: false
> ---
>
> Key: FLINK-26808
> URL: https://issues.apache.org/jira/browse/FLINK-26808
> Project: Flink
>  Issue Type: Bug
>  Components: Client / Job Submission
>Affects Versions: 1.14.2
>Reporter: Luís Costa
>Assignee: Ufuk Celebi
>Priority: Minor
>  Labels: pull-request-available
>
> Greetings,
> I am using flink version 1.14.2 and after changing web.submit.enable to 
> false, job submission via REST API is no longer working. 
> The app that uses flink receives a 404 with "Not found: /jars/upload" 
> Looking into 
> [documentation|[https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/config/]]
>   saw that web.upload.dir is only used if  {{web.submit.enable}} is true, if 
> not it will be used JOB_MANAGER_WEB_TMPDIR_KEY
> Doing a curl to /jars it returns:
> {code:java}
> curl -X GET http://localhost:8081/jars
> HTTP/1.1 404 Not Found
> {"errors":["Unable to load requested file /jars."]} {code}
> Found this issue related to option web.submit.enable 
> https://issues.apache.org/jira/browse/FLINK-13799
> Could you please let me know if this is an issue that you are already aware?
> Thanks in advance
> Best regards,
> Luís Costa
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-26808) [flink v1.14.2] Submit jobs via REST API not working after set web.submit.enable: false

2023-03-13 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-26808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699553#comment-17699553
 ] 

Chesnay Schepler commented on FLINK-26808:
--

What the docs are referring to is the job submission via the Flink client still 
work, which it does.

We can amend the docs to state that this flag disables the jar-based job 
submission endpoints and hides the related UI sections.

> [flink v1.14.2] Submit jobs via REST API not working after set 
> web.submit.enable: false
> ---
>
> Key: FLINK-26808
> URL: https://issues.apache.org/jira/browse/FLINK-26808
> Project: Flink
>  Issue Type: Bug
>  Components: Client / Job Submission
>Affects Versions: 1.14.2
>Reporter: Luís Costa
>Priority: Minor
>
> Greetings,
> I am using flink version 1.14.2 and after changing web.submit.enable to 
> false, job submission via REST API is no longer working. 
> The app that uses flink receives a 404 with "Not found: /jars/upload" 
> Looking into 
> [documentation|[https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/config/]]
>   saw that web.upload.dir is only used if  {{web.submit.enable}} is true, if 
> not it will be used JOB_MANAGER_WEB_TMPDIR_KEY
> Doing a curl to /jars it returns:
> {code:java}
> curl -X GET http://localhost:8081/jars
> HTTP/1.1 404 Not Found
> {"errors":["Unable to load requested file /jars."]} {code}
> Found this issue related to option web.submit.enable 
> https://issues.apache.org/jira/browse/FLINK-13799
> Could you please let me know if this is an issue that you are already aware?
> Thanks in advance
> Best regards,
> Luís Costa
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-26808) [flink v1.14.2] Submit jobs via REST API not working after set web.submit.enable: false

2023-03-03 Thread Tobias Hofer (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-26808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696167#comment-17696167
 ] 

Tobias Hofer commented on FLINK-26808:
--

The expectation is that Flink behaves as documented.

In 
[https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/] 
I can read the following:
{quote}{{{}web.submit.enable{}}}: Enables uploading and starting jobs through 
the Flink UI {_}(true by default){_}. Please note that even when this is 
disabled, session clusters still accept jobs through REST requests (HTTP 
calls). This flag only guards the feature to upload jobs in the UI.
{quote}
I would like to be able to disable submission via UI but still allow to job 
sumission to work.

This behavior impacts the Flink Kubernetes Operator. It fails with

{color:#174ea6}Warning | SESSIONJOBEXCEPTION | 
org.apache.flink.runtime.rest.util.RestClientException: [Not found: 
/v1/jars/upload]"{color}

> [flink v1.14.2] Submit jobs via REST API not working after set 
> web.submit.enable: false
> ---
>
> Key: FLINK-26808
> URL: https://issues.apache.org/jira/browse/FLINK-26808
> Project: Flink
>  Issue Type: Bug
>  Components: Client / Job Submission
>Affects Versions: 1.14.2
>Reporter: Luís Costa
>Priority: Minor
>
> Greetings,
> I am using flink version 1.14.2 and after changing web.submit.enable to 
> false, job submission via REST API is no longer working. 
> The app that uses flink receives a 404 with "Not found: /jars/upload" 
> Looking into 
> [documentation|[https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/config/]]
>   saw that web.upload.dir is only used if  {{web.submit.enable}} is true, if 
> not it will be used JOB_MANAGER_WEB_TMPDIR_KEY
> Doing a curl to /jars it returns:
> {code:java}
> curl -X GET http://localhost:8081/jars
> HTTP/1.1 404 Not Found
> {"errors":["Unable to load requested file /jars."]} {code}
> Found this issue related to option web.submit.enable 
> https://issues.apache.org/jira/browse/FLINK-13799
> Could you please let me know if this is an issue that you are already aware?
> Thanks in advance
> Best regards,
> Luís Costa
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-26808) [flink v1.14.2] Submit jobs via REST API not working after set web.submit.enable: false

2022-03-23 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-26808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511135#comment-17511135
 ] 

Chesnay Schepler commented on FLINK-26808:
--

That's intentional. Disabling the web submission disables all the handlers 
related to the web submission.

I'm not sure what the expectation is.

> [flink v1.14.2] Submit jobs via REST API not working after set 
> web.submit.enable: false
> ---
>
> Key: FLINK-26808
> URL: https://issues.apache.org/jira/browse/FLINK-26808
> Project: Flink
>  Issue Type: Bug
>  Components: Client / Job Submission
>Affects Versions: 1.14.2
>Reporter: Luís Costa
>Priority: Minor
>
> Greetings,
> I am using flink version 1.14.2 and after changing web.submit.enable to 
> false, job submission via REST API is no longer working. 
> The app that uses flink receives a 404 with "Not found: /jars/upload" 
> Looking into 
> [documentation|[https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/config/]]
>   saw that web.upload.dir is only used if  {{web.submit.enable}} is true, if 
> not it will be used JOB_MANAGER_WEB_TMPDIR_KEY
> Doing a curl to /jars it returns:
> {code:java}
> curl -X GET http://localhost:8081/jars
> HTTP/1.1 404 Not Found
> {"errors":["Unable to load requested file /jars."]} {code}
> Found this issue related to option web.submit.enable 
> https://issues.apache.org/jira/browse/FLINK-13799
> Could you please let me know if this is an issue that you are already aware?
> Thanks in advance
> Best regards,
> Luís Costa
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)