lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Bernstein (JIRA)" <>
Subject [jira] [Updated] (SOLR-9240) Support parallel ETL with the topic expression
Date Tue, 12 Jul 2016 16:02:20 GMT


Joel Bernstein updated SOLR-9240:
    Fix Version/s: 6.2

> Support parallel ETL with the topic expression
> ----------------------------------------------
>                 Key: SOLR-9240
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Joel Bernstein
>            Assignee: Joel Bernstein
>             Fix For: 6.2
>         Attachments: SOLR-9240.patch, SOLR-9240.patch
> It would be useful for Solr to support large scale *Extract, Transform and Load* use
cases with streaming expressions. Instead of using MapReduce for the ETL, the topic expression
will be used and SolrCloud will behave like a giant message queue filled with data to be processed.
The topic expression works in batches and supports retrieval of stored fields, so large scale
*text ETL* will work perfectly with this approach.
> This ticket makes two small changes to the topic() expression that makes this possible:
> 1) Changes the topic() behavior so it can operate in parallel.
> 2) Adds the initialCheckpoint parameter to the topic expression so a topic can start
pulling records from anywhere in the queue.
> Daemons can be sent to worker nodes that each work on processing a partition of the data
from the same topic. The daemon() functions natural behavior is perfect for iteratively calling
a topic until all records in the topic have been processed.
> The sample code below pulls all records from one collection and indexes them into another
collection. A Transform function could be wrapped around the topic() to transform the records
before loading. Custom functions can also be built to load the data in parallel to any outside
> {code}
> parallel(
>          workerCollection, 
>          workers="2", 
>          sort="_version_ desc", 
>          daemon(
>                   update(
>                         updateCollection, 
>                         batchSize=200, 
>                         topic(
>                             checkpointCollection,
>                             topicCollection, 
>                             q=*:*, 
>                              id="topic1",
>                              fl="id, to , from, body", 
>                              partitionKeys="id",
>                              initialCheckpoint="0")), 
>                runInterval="1000", 
>                id="daemon1"))
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message