Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Atomic update of Solr document via morphlineSolrSink possible ?

Solved Go to solution

Atomic update of Solr document via morphlineSolrSink possible ?

Guru

Hi,

is it possible to configure the morphline.conf, so that the loadSolr command can perform an atomic update of a field in the document ?

Why ?

I want to do something like:

- logfile analysis via flume using the morphlineSolrSink to store the output in a Solr doc

- apply some grok regex patterns in the morphline

- if match, then create a field with the fieldname consisting of user-id+request and the value should be the count of how often this user fired that request, thereby just increment this value on any matched morphline pipeline.

- afterwards the document is stored in Solr with the created field as unique identifier

 

I assume the loadSolr command implicitly calls an update on the solr server and since Solr support atomic update to e.g. increment a counter, it would be great to be able to use this feature inside a morphlineSolrSink.

 

any help appreciated....Gerd....

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Atomic update of Solr document via morphlineSolrSink possible ?

Expert Contributor

The loadSolr command doesn't support atomic updates, but you could write a custom morphline command that implements something like this.

2 REPLIES 2

Re: Atomic update of Solr document via morphlineSolrSink possible ?

Expert Contributor

The loadSolr command doesn't support atomic updates, but you could write a custom morphline command that implements something like this.

Re: Atomic update of Solr document via morphlineSolrSink possible ?

Guru

ah, ok. Interesting topic, seems like I have to check this out.....

 

regards.....Gerd....