-
Notifications
You must be signed in to change notification settings - Fork 137
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
[Subtask] Display information of all application through Cli
#837
Comments
@smallzhongfeng Can you assign this issue to me? Thank you very much! |
We usually use rest api to control admin service. If we need add api, we would better add rest api. Could we keep consistent with other operation. You can refer to #684 |
@jerqi Thank you very much for your suggestion, I will finish this pr as soon as possible. Sorry for the late reply. |
### What changes were proposed in this pull request? > uniffle client-cli -host localhost -port 9526 --applications --app-list application_1,application_2 --appId-regex application_1 -o JSON ``` sh-3.2# ./uniffle client-cli -host localhost -port 9526 --applications --app-list application_1,application_2 --appId-regex application_1 -o JSON 2023-08-08 18:10:29,130 INFO uniffle.AbstractCustomCommandLine: connected to coordinator: http://localhost:9526. 2023-08-08 18:10:29,517 INFO cli.UniffleCLI: uniffle-client-cli : get applications application: [{"applicationId":"application_1","user":"test","lastHeartBeatTime":"2023-08-08 18:10:23"}] ``` > uniffle client-cli -host localhost -port 9526 --applications -o JSON ``` sh-3.2# ./uniffle client-cli -host localhost -port 9526 --applications -o JSON 2023-08-08 18:15:06,737 INFO uniffle.AbstractCustomCommandLine: connected to coordinator: http://localhost:9526. 2023-08-08 18:15:07,149 INFO cli.UniffleCLI: uniffle-client-cli : get applications application: [{"applicationId":"application_0","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_10","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_100","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1000","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1001","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1002","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1003","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1004","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"},{"applicationId":"application_1005","user":"test","lastHeartBeatTime":"2023-08-08 18:14:51"}] ``` > sh-3.2# ./uniffle client-cli -host localhost -port 9526 --applications ``` sh-3.2# ./uniffle client-cli -host localhost -port 9526 --applications 2023-08-08 18:16:32,561 INFO uniffle.AbstractCustomCommandLine: connected to coordinator: http://localhost:9526. 2023-08-08 18:16:33,066 INFO cli.UniffleCLI: uniffle-client-cli : get applications +-------------------------------------------------------------------+ | Uniffle Applications | +------------------+------+---------------------+-------------------+ | ApplicationId | User | Last HeartBeatTime | RemoteStoragePath | +------------------+------+---------------------+-------------------+ | application_0 | test | 2023-08-08 18:16:30 | null | | application_1 | test | 2023-08-08 18:16:30 | null | | application_10 | test | 2023-08-08 18:16:30 | null | | application_100 | test | 2023-08-08 18:16:30 | null | | application_1000 | test | 2023-08-08 18:16:30 | null | | application_1001 | test | 2023-08-08 18:16:30 | null | | application_1002 | test | 2023-08-08 18:16:30 | null | | application_1003 | test | 2023-08-08 18:16:30 | null | | application_1004 | test | 2023-08-08 18:16:30 | null | | application_1005 | test | 2023-08-08 18:16:30 | null | +------------------+------+---------------------+-------------------+ ``` ### Why are the changes needed? fixes #837 [Subtask] Display information of all application through Cli. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add Junit Test & Test environment verification
Code of Conduct
Search before asking
Describe the subtask
Display the information of all servers through the
Cli
command such asuniffle-cli --list application
Parent issue
#758
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: