在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。

同时启动了9200和9300端口。这两个有什么用?9300端口是干嘛的

Elasticsearch | 作者 xujianxing | 发布于2016年05月06日 | 阅读数:29694


[2016-05-06 15:18:52,219][WARN ][bootstrap                ] unable to install syscall filter: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
[2016-05-06 15:18:52,530][INFO ][node                     ] [Hellfire] version[2.3.2], pid[32762], build[b9e4a6a/2016-04-21T16:03:47Z]
[2016-05-06 15:18:52,530][INFO ][node                     ] [Hellfire] initializing ...
[2016-05-06 15:18:53,145][INFO ][plugins                  ] [Hellfire] modules [lang-groovy, reindex, lang-expression], plugins [], sites []
[2016-05-06 15:18:53,168][INFO ][env                      ] [Hellfire] using [1] data paths, mounts [[/opt (/dev/xvdb1)]], net usable_space [42gb], net total_space [49.2gb], spins? [no], types [ext3]
[2016-05-06 15:18:53,168][INFO ][env                      ] [Hellfire] heap size [1.7gb], compressed ordinary object pointers [true]
[2016-05-06 15:18:53,168][WARN ][env                      ] [Hellfire] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-05-06 15:18:55,381][INFO ][node                     ] [Hellfire] initialized
[2016-05-06 15:18:55,381][INFO ][node                     ] [Hellfire] starting ...
[2016-05-06 15:18:55,438][INFO ][transport                ] [Hellfire] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2016-05-06 15:18:55,443][INFO ][discovery                ] [Hellfire] elasticsearch/MU0QAHRZTEO3eO9bBrhh2Q
[2016-05-06 15:18:58,472][INFO ][cluster.service          ] [Hellfire] new_master {Hellfire}{MU0QAHRZTEO3eO9bBrhh2Q}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-05-06 15:18:58,483][INFO ][http                     ] [Hellfire] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
[2016-05-06 15:18:58,484][INFO ][node                     ] [Hellfire] started
[2016-05-06 15:18:58,524][INFO ][gateway                  ] [Hellfire] recovered [0] indices into cluster_state

请问这两个端口有啥区别呢?
已邀请:

medcl - 今晚打老虎。

赞同来自: xujianxing meteor fox123

9300是tcp通讯端口,集群间和TCPClient都走的它,9200是http协议的RESTful接口

wangcongyi_zz - 创造自己所想。

赞同来自:

学习了。

要回复问题请先登录注册