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

Stack Overflow | Renukaradhya | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 7 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