You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by TING CHEN <ti...@uber.com.INVALID> on 2020/04/07 22:32:42 UTC
Proposal to add a new server rest API for segment download
As a part of the PR <https://github.com/apache/incubator-pinot/pull/4914> to
by-pass deep-store requirement for segment completion in low level
realtime consumer (design doc
<https://cwiki.apache.org/confluence/display/PINOT/By-passing+deep-store+requirement+for+Realtime+segment+completion>),
I propose to add a new segment download rest API to Pinot server in the
TablesResource
<https://github.com/apache/incubator-pinot/blob/master/pinot-server/src/main/java/org/apache/pinot/server/api/resources/TablesResource.java>
class:
- /tables/{tableNameWithType}/segments/{segmentName}
The API allows download of a segment as a zipped tar file. Its primary
usage is for segment download when a deep store is unavailable.
Please let me know if you have any questions.
Thanks,
Ting Chen
Re: Proposal to add a new server rest API for segment download
Posted by TING CHEN <ti...@uber.com.INVALID>.
A URI change based on feedback from Slack so far. The URI from download
will change to
/segments/{tableNameWithType}/{segmentName}
to keep it consistent with the controller API.
On Tue, Apr 7, 2020 at 3:32 PM TING CHEN <ti...@uber.com> wrote:
> As a part of the PR <https://github.com/apache/incubator-pinot/pull/4914> to
> by-pass deep-store requirement for segment completion in low level
> realtime consumer (design doc
> <https://cwiki.apache.org/confluence/display/PINOT/By-passing+deep-store+requirement+for+Realtime+segment+completion>),
> I propose to add a new segment download rest API to Pinot server in the
> TablesResource
> <https://github.com/apache/incubator-pinot/blob/master/pinot-server/src/main/java/org/apache/pinot/server/api/resources/TablesResource.java>
> class:
>
> - /tables/{tableNameWithType}/segments/{segmentName}
>
> The API allows download of a segment as a zipped tar file. Its primary
> usage is for segment download when a deep store is unavailable.
>
> Please let me know if you have any questions.
>
> Thanks,
> Ting Chen
>