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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -