New Type not getting created in Elasticsearch

I am trying to create 3 elasticsearch type from code in an Index. One type is created successfully. Add data come in ES. But second type is not getting created. I am using spring elasticsearch data to create the data in ES.

This is below logs in ES. I can see the mapping for first Type , but 2nd Type I cant see mapping in ES.
When I debug the code , the statement is executed successfully

^C[2017-11-28 09:47:44,028][INFO ][node ] [Human Robot] stopping ...
[2017-11-28 09:47:44,135][INFO ][node ] [Human Robot] stopped
[2017-11-28 09:47:44,135][INFO ][node ] [Human Robot] closing ...
[2017-11-28 09:47:44,154][INFO ][node ] [Human Robot] closed
BANL141bbeaff:bin vpati$ elasticsearch
[2017-11-28 09:47:47,032][INFO ][node ] [Destroyer] version[2.4.6], pid[10955], build[5376dca/2017-07-18T12:17:44Z]
[2017-11-28 09:47:47,033][INFO ][node ] [Destroyer] initializing ...
[2017-11-28 09:47:47,537][INFO ][plugins ] [Destroyer] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2017-11-28 09:47:47,589][INFO ][env ] [Destroyer] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [247.1gb], net total_space [464.6gb], spins? [unknown], types [hfs]
[2017-11-28 09:47:47,589][INFO ][env ] [Destroyer] heap size [989.8mb], compressed ordinary object pointers [true]
[2017-11-28 09:47:47,589][WARN ][env ] [Destroyer] max file descriptors [10240] for elasticsearch process likely too low, consider increasing to at least [65536]
[2017-11-28 09:47:49,089][INFO ][node ] [Destroyer] initialized
[2017-11-28 09:47:49,089][INFO ][node ] [Destroyer] starting ...
[2017-11-28 09:47:49,160][INFO ][transport ] [Destroyer] publish_address {}, bound_addresses {[fe80::1]:9300}, {[::1]:9300}, {}
[2017-11-28 09:47:49,163][INFO ][discovery ] [Destroyer] elasticsearch/L-5qohSRRCqjy8wgp46J_Q
[2017-11-28 09:47:52,197][INFO ][cluster.service ] [Destroyer] new_master {Destroyer}{L-5qohSRRCqjy8wgp46J_Q}{}{}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2017-11-28 09:47:52,211][INFO ][http ] [Destroyer] publish_address {}, bound_addresses {[fe80::1]:9200}, {[::1]:9200}, {}
[2017-11-28 09:47:52,211][INFO ][node ] [Destroyer] started
[2017-11-28 09:47:52,247][INFO ][gateway ] [Destroyer] recovered [1] indices into cluster_state
[2017-11-28 09:47:52,524][INFO ][cluster.routing.allocation] [Destroyer] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[asset_attributor][1]] ...]).
[2017-11-28 09:55:07,230][INFO ][cluster.metadata ] [Destroyer] [asset_attributor] create_mapping [snow_asset]
[2017-11-28 09:55:07,272][INFO ][cluster.metadata ] [Destroyer] [asset_attributor] create_mapping [host_app]
[2017-11-28 09:55:07,290][INFO ][cluster.metadata ] [Destroyer] [asset_attributor] create_mapping [ip_app]
[2017-11-28 09:55:45,703][INFO ][cluster.metadata ] [Destroyer] [asset_attributor] update_mapping [snow_asset]
[2017-11-28 09:57:44,115][INFO ][cluster.metadata ] [Destroyer] [asset_attributor] update_mapping [snow_asset]

Could you please clarify the above statement? How did you debug? When you say executed successfully, do you mean that you were able to create all three types of mappings?

In eclipse I did the code debugging. I see "esl.saveNetgenieData(doc);" is executed every time. But I cant see Type and Data in index.

for (Map<String, String> data : netgenieCertData) {
NetgenieDocument doc = new NetgenieDocument();
try {
} catch (Exception ex) {

My document defination

@Document(indexName = "asset_attributor", type = "netgenie2")

public class NetgenieDocument {

My ES Repository for above document

public interface NetgenieRepository extends ElasticsearchRepository<NetgenieDocument, String> {


What happens when you try and create the mappings via the REST API as shown here ?

Found the issue , its multi module application. In the 2nd Module ,properties file , i missed to add the property for ES.
After that problem is solved.

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