1、安装es时,curl http://localhost:9200或者 curl http://127.0.0.1:9200能成功,但是 curl http://218.197.10.32:9200不能成功,用其他主机的浏览器输入访问也不能成功
因为 network.host: 192.168.10.32前面的#号没有去掉,被注释了,没有生效。还有一种解决办法: network.host设置成0.0.0.0,表示任何人都可以访问。
2、在配置kibana时,elasticsearch.url: "http://192.168.10.32:9200" ,键值对之间的:后需要有一个空格,否则会报错。
3、es异常关闭时,再次启动需要删掉data/nodes目录
4、在配置kibana时,elasticsearch.url过时了,要使用elasticsearch.hosts
5、
无法访问此网站
192.168.10.42 拒绝了我们的连接请求。
请试试以下办法:
- 检查网络连接
- 检查代理服务器和防火墙
当出现这种情况时,可能是程序没有配置IP地址192.168.10.42,而默认地址是localhost。或者是主机防火墙没有关闭
6、Exception in thread "main" 2017-11-10 06:29:49,106 main ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.ElasticsearchParseException[malformed, expected settings to start with 'object', instead was [VALUE_STRING]]
解决:请尽量保持冒号前面没空格,后面一个空格,不要用tab键
7、 [no_shard_available_action_exception] No shard available
Unable to fetch data from kql collector
8、为了匹配集群,需要将设置为discovery.zen.ping.unicast.hosts: ["master", "slave"],即是主机名(或者是其IP地址)的列表
9、配置kibana,需要配置server.host: 192.168.10.42,即kibana server 的主机地址,和
elasticsearch.hosts: ["http://192.168.10.42:9200", "http://192.168.10.32:9200"],即es集群,注意这里用ip地址而不是主机名