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

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -