[
https://issues.apache.org/jira/browse/SUBMARINE-442?focusedWorklogId=422750&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-422750
]
ASF GitHub Bot logged work on SUBMARINE-442:
--------------------------------------------
Author: ASF GitHub Bot
Created on: 15/Apr/20 14:31
Start Date: 15/Apr/20 14:31
Worklog Time Spent: 10m
Work Description: JohnTing commented on pull request #263: SUBMARINE-442.
Support get job's log in submarine-server REST API
URL: https://github.com/apache/submarine/pull/263
### What is this PR for?
Now we have the "jobs" resource in REST which can do CRUD. We also need a
"logs" API to get the job's log output. The URI could be "api/v1/logs"
It should accept parameters like "jobid". Initially, the logs could be
aggregated logs of all containers.
Streaming is preferred so that the python client can enable a fancy way for
the end-user to check logs
### What type of PR is it?
Feature
### Todos
* [X] - get logs so far
* [X] - get logs until the end of the pod
### What is the Jira issue?
https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-442
### How should this be tested?
Create a job
Visit /api/v1/logs/{jobid} or /api/v1/logs/stream/{jobid} with a browser
### Screenshots (if appropriate)
http://127.0.0.1:8080/api/v1/logs/job_1586957273819_0001

http://127.0.0.1:8080/api/v1/logs/stream/job_1586957273819_0001

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 422750)
Remaining Estimate: 0h
Time Spent: 10m
> Support get job's log in submarine-server REST API
> --------------------------------------------------
>
> Key: SUBMARINE-442
> URL: https://issues.apache.org/jira/browse/SUBMARINE-442
> Project: Apache Submarine
> Issue Type: Sub-task
> Components: Backend Server
> Reporter: Zhankun Tang
> Assignee: JohnTing
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Now we have the "jobs" resource in REST which can do CRUD. We also need a
> "logs" API to get the job's log output. The URI could be "api/v1/logs"
> It should accept parameters like "jobid". Initially, the logs could be
> aggregated logs of all containers.
> Streaming is preferred so that the python client can enable a fancy way for
> the end-user to check logs
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]