Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to make yarn excute job using OneTimeApplication? (need to use linkis httpRestFulAPI) #4844

Closed
1 task done
PelicanMan126 opened this issue Aug 2, 2023 · 2 comments
Labels
Question Further information is requested

Comments

@PelicanMan126
Copy link

PelicanMan126 commented Aug 2, 2023

Before asking

Your environment

  • Linkis version used: 1.3.0
  • Environment name and version:
    • hdp-2.7.7
    • yarn-2.7.7

Describe your questions

Q1. my project is require using httpRestFul to make linkis to excute job, but now, when yarn application finished excute job, it keep alive 30m, i know that yarn is support one time application, but i don't know how to make linkis to do that.
i'm using "/api/rest_j/v1/entrance/submit" this API and i don't know what should i put in the param
我的项目使用linkis的restfulAPI来使linkis执行任务,当linkis调用yarn完成任务后,yarn的application会保持30分钟才会下线(是否默认使用了交互式链接),我了解到yarn支持一次性链接,请问如何调用linkis的API才能够使它变为一次性实例?我使用的是"/api/rest_j/v1/entrance/submit"这个接口,我知道他可以填写param来改变类似Container数量或内存数量等配置,请问能否修改使用的application类型?

Eureka service list

No response

Some logs info or acctch file

no log

@PelicanMan126 PelicanMan126 added the Question Further information is requested label Aug 2, 2023
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
[email protected] community activity information subscribe unsubscribe archive

@peacewong
Copy link
Contributor

By default, it will be idle for 30 minutes to exit, and the parameter support configuration is: wds.linkis.engineconn.max.free.time=3m
You can also add a tag to execute once, and it will automatically exit after the task is executed: "executeOnce": ""

默认会30分钟空闲退出,参数支持配置为:wds.linkis.engineconn.max.free.time=3m
你也可以增加执行一次标签,任务执行完就会自动退出:"executeOnce":""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants