Giter VIP home page Giter VIP logo

Comments (7)

DarioBalinzo avatar DarioBalinzo commented on July 4, 2024 1

I've seen the code and the incrementing.field.name is not compatible yet with nested documents. At this time it works only with the root level fields.

I hope you can find a workaround or a new incrementing field, in the meantime I'm planning to add the compatibility for nested fields also for cursors when finalizing the ssl config branch.

from kafka-connect-elasticsearch-source.

armaankohli91 avatar armaankohli91 commented on July 4, 2024

Hi

Any update on this?

On all versions above 1.4, I am facing this issue even when my incrementing.field.name is not a nested field. Following is the connector configuration:

{
             "connector.class":"com.github.dariobalinzo.ElasticSourceConnector",
             "tasks.max": "1",
             "es.scheme": "http",
             "es.host" : "somehost",
             "es.port" : "someport",
             "es.user" : "username",
             "mode":"incrementing",
             "es.password" : "password", 
             "index.prefix" : "index",
             "topic.prefix" : "topic",
             "incrementing.field.name" : "received_on",
             "poll.interval.ms" : 10000

}

from kafka-connect-elasticsearch-source.

DarioBalinzo avatar DarioBalinzo commented on July 4, 2024

Hi @armaankohli91 , sorry for the delay, I will work on it in the next days and I will update here in the issue.
Can you provide a sample document json, especially of the incrementing field that is failing?

Is that an array? array also are not supported

Thanks,
Dario

from kafka-connect-elasticsearch-source.

armaankohli91 avatar armaankohli91 commented on July 4, 2024

Hi @armaankohli91 , sorry for the delay, I will work on it in the next days and I will update here in the issue. Can you provide a sample document json, especially of the incrementing field that is failing?

Is that an array? array also are not supported

Thanks, Dario

Hi Dario

Thanks for the response.

No it is not an array. Its a plain number that just increments with each document.

Sorry I misunderstood by what you meant by sample document. Editing the reply to have the same here:

{
                    "da_name": "Rihanna",
                    "da_firstName": "Rihanna",
                    "da_lastName": "Rihanna",
                    "da_address": "TX",
                    "ra_f1": "12",
                    "ra_H1": "11",
                    "created_on": "2022-02-02T16:38:53.0870292",
                    "received_on": 97568911026700
                }

So, received_on is a field that stores current milliseconds while saving the document.

Hope it helps.

-Armaan

from kafka-connect-elasticsearch-source.

dahal4 avatar dahal4 commented on July 4, 2024

hi there ,i am facing same problem .Did anyone find the solution?

from kafka-connect-elasticsearch-source.

siva-vunet avatar siva-vunet commented on July 4, 2024

Hey, is this issue still open ? I am facing this exact same error when i try to use a timestamp keyword field as the incrementing field in the Kafka connector configuration.

from kafka-connect-elasticsearch-source.

hyperbaba avatar hyperbaba commented on July 4, 2024

Looks like the nested fields for the incrementing.field.name is still not functional. This is a serious limitation for this great piece of software

from kafka-connect-elasticsearch-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.