amazon web services - Elastic search to have mapped column value as the ID using spark submit -
my spark submit pulls data kafka , puts elastic search, using below snippet run rdd. facts.foreachrdd(fact -> { javaesspark.savejsontoes(fact, esindex + "/" + estype);
please me find way fact (elastic search mapping) column event_id "_id" of elastic search document.
you can try following:
facts.foreachrdd(fact -> { javaesspark.savejsontoes(fact, esindex + "/" + estype, immutablemap.of("es.mapping.id", "your_column_name"));});
Comments
Post a Comment