分布式集群入门

所需文件均在我上传的资源中可以找到,并且版本匹配好的

资源下载

elasticsearch-rtf

elasticsearch-head



端口:http://127.0.0.1:9200/

分布式集群入门_第1张图片

端口:http://localhost:9100/


启动命令:

启动elasticsearch:

分布式集群入门_第2张图片

启动head:

分布式集群入门_第3张图片

修改配置文件:E:\pythonStudy\elasticsearch-rtf-master\config下的elasticsearch.yml

添加:

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.allow-headers: "X-Requested-With,Content-Type,Content-Length,X-User"

切记冒号后面要有空格:

否则无法启动且报错:

 

Exception in thread "main"ElasticsearchParseException[malformed, expected settings to start with 'o


不知道的没想到配置文件如此苛刻,找到问题所在非常痛苦。


你可能感兴趣的:(Hadoop,Python)