How to get around the problem with Incompatible types found in multi-mapping during reading data by Spark from Elasticsearch?

How to get around this problem (without reindexing):

Py4JJavaError: An error occurred while calling o2649.load.
: org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Incompatible types found in multi-mapping: Field [metadata.cscope.0] has conflicting types of [LONG] and [OBJECT].

I try to exclude this field by but not help.

My reading:

reader ="org.elasticsearch.spark.sql") \
    .option("es.port", "9200") \
    .option("", "") \
    .option("", "") \
    .option("es.nodes.wan.only", "true") \
    .option("", "false") \
    .option("es.http.timeout", "3m") \
    .option("", "log") \
    .option("", "metadata*") \
    .option("", "false") \
    .option("es.nodes", IP)

df = reader.load(INDEX_NAME)

Spark ver. 2.4.5
Lib: elasticsearch-spark-20_2.11-7.6.2.jar

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.