Hi, Patricia

Maybe you should check the code carefully,
a reply code of 404 typically indicates that an error occured in client side.Alternatively,could you share a snippet code where the error occured? This would greatly assist us in addressing your issue effectively.

Best
Jiadong Lu

On 2023/8/15 17:34, patricia lee wrote:
Hi Jiadong,


Yes it is my understanding too, I should be able to upload jars via rest endpoint even the property web.ui.submit=false, but that wasn't the behaviour :(

web.ui.submit=false

But /jars/upload endpoint throws 404.
Is this expected?


Thanks

On Tue, Aug 15, 2023, 12:31 AM jiadong.lu <http://jiadong.lu> <archzi...@gmail.com <mailto:archzi...@gmail.com>> wrote:

    Hi, Patricia

    I think you should have a look the REST API[1].

      > "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"

    means  you cannot upload flink application jar in the flink
    dashboard UI
    if the `web.ui.submit=false`,

    you still can sumbit the flink application jar by the REST API.

    Best

    Jiadong Lu.

    1.
    https://nightlies.apache.org/flink/flink-docs-master/docs/ops/rest_api/ 
<https://nightlies.apache.org/flink/flink-docs-master/docs/ops/rest_api/>

    On 2023/8/15 0:14, patricia lee 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/ 
<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
    <mailto: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