java.lang.IllegalArgumentException: The number of object passed must be even but was [1]

Stack Overflow | Renukaradhya | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Elastic Search : Got java.lang.IllegalArgumentException: The number of object passed must be even but was [1]

    Stack Overflow | 5 months ago | Renukaradhya
    java.lang.IllegalArgumentException: The number of object passed must be even but was [1]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The number of object passed must be even but was [1]

      at org.elasticsearch.action.index.IndexRequest.source()
    2. ElasticSearch
      IndexRequestBuilder.setSource
      1. org.elasticsearch.action.index.IndexRequest.source(IndexRequest.java:451)
      2. org.elasticsearch.action.index.IndexRequestBuilder.setSource(IndexRequestBuilder.java:186)
      2 frames
    3. org.apache.kafka
      WorkerTask.doRun
      1. org.apache.kafka.connect.elasticsearchschema.ElasticsearchSinkTask.put(ElasticsearchSinkTask.java:138)
      2. org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:381)
      3. org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:227)
      4. org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:170)
      5. org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:142)
      6. org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:140)
      6 frames