https://pinot.apache.org/ logo
Join Slack
Powered by
# general
  • m

    Mayank

    12/12/2019, 6:39 PM
    @User do we not support a hybrid situation where index is built in one system (say HDFS), but controller data dir is Gcs?
  • j

    Jennifer Dai

    12/12/2019, 6:40 PM
    it's never been tested so there may be some problems with that
  • j

    Jennifer Dai

    12/12/2019, 6:40 PM
    but it should be supported
  • j

    Jennifer Dai

    12/12/2019, 6:40 PM
    if there are issues, feel free to reach out
  • m

    Mayank

    12/12/2019, 6:40 PM
    Ok, so we derive scheme from upload uri, right?
  • j

    Jennifer Dai

    12/12/2019, 6:41 PM
    yes, basically where the segment is currently located
  • j

    Jennifer Dai

    12/12/2019, 6:41 PM
    Copy code
    SegmentFetcherFactory.getInstance().getSegmentFetcherBasedOnURI(currentSegmentLocationURI)
            .fetchSegmentToLocal(currentSegmentLocationURI, tempEncryptedFile);
  • m

    Mayank

    12/12/2019, 6:42 PM
    @User You can use the same endpoint to push the segment from Gcs. You just need to specify the uri with upload.
  • m

    Mayank

    12/12/2019, 6:42 PM
    This is assuming there's a PinotFs implementation for Gcs.
  • e

    Elon

    12/12/2019, 6:42 PM
    There is... almost:) - I am working on the feature, that's why I have all these questions :)
  • a

    Alex

    12/12/2019, 6:43 PM
    @User documentations has an example:
  • a

    Alex

    12/12/2019, 6:43 PM
    Copy code
    curl -X POST -H "UPLOAD_TYPE:URI" -H "DOWNLOAD_URI:<hdfs://nameservice1/hadoop/path/to/segment/file.gz>" -H "content-type:application/json" -d '' localhost:9000/segments
  • a

    Alex

    12/12/2019, 6:43 PM
    what ios DOWNLOAD_URI: part?
  • j

    Jennifer Dai

    12/12/2019, 6:43 PM
    current location of segment in deep storage
  • a

    Alex

    12/12/2019, 6:46 PM
    and ”
    Copy code
    :<hdfs://nameservice1/hadoop/path/to/segment/file.gz>
    ?
  • j

    Jennifer Dai

    12/12/2019, 6:47 PM
    DOWNLOAD_URI is a static field
  • j

    Jennifer Dai

    12/12/2019, 6:47 PM
    the second portion is where your segment is 🙂
  • a

    Alex

    12/12/2019, 6:47 PM
    ah, got it 🙂
  • a

    Alex

    12/12/2019, 6:49 PM
    just a thought, maybe less confusing to have an api like: POST localhost:9000/segments/uri with a header that indicates whether the destination is compressed (and which compressions) or just a plain folder .
    👍 1
  • e

    Elon

    12/12/2019, 9:43 PM
    FYI, got everything working!
  • e

    Elon

    12/12/2019, 9:44 PM
    Can upload a tgz file from gcs
    🎉 2
  • e

    Elon

    12/12/2019, 9:44 PM
    Will add a docs and update pull request
  • e

    Elon

    12/12/2019, 9:45 PM
    So next question:) How do we store segments on the controller, i.e. that "deep store"? Is there a way to back up offline segments to gcs also?
  • k

    Kishore G

    12/12/2019, 9:47 PM
    yes.
    👍 2
  • h

    Haibo Wang

    12/12/2019, 10:16 PM
    Master seems broken. Sent a diff hoping to fix it: https://github.com/apache/incubator-pinot/pull/4920
  • h

    Haibo Wang

    12/12/2019, 10:17 PM
    set the channel topic: Community-wide announcements and work-based matters
  • m

    Mayank

    12/12/2019, 10:28 PM
    @User ^^
  • h

    Haibo Wang

    12/12/2019, 10:31 PM
    Jackie has just handled it in https://github.com/apache/incubator-pinot/pull/4922.
  • h

    Haibo Wang

    12/12/2019, 10:31 PM
    Should be good now. Thanks!
  • p

    Paulo Silva

    12/17/2019, 12:09 AM
    i'm looking for "like" expression... I've found "regexp_like", we have others functions to handle string "contains" operation?
1...106107108...160Latest