Tag: elasticsearch 5

Elasticsearch将不能与Docker一起运行

我写了一些与Elasticsearch集成的代码,当ES运行在我的电脑上时,它运行起来很顺利。 但是,当我试图通过Docker运行ES时,我一直得到这个错误: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{hrmyFR97S_qMsPEsOOEFjw}{localhost}{127.0.0.1:9300}] 这是我如何初始化客户端: Settings settings = Settings.builder() .put("cluster.name", "elasticsearch123") .build(); Client client = new PreBuiltTransportClient(settings) .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300)); 这就是我的docker-compose文件的样子: version: '2' services: elastic3: image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0 environment: – cluster.name=elasticsearch123 – bootstrap.memory_lock=true – transport.host=127.0.0.1 – xpack.security.enabled=false – http.host=0.0.0.0 – network.host=127.0.0.1 ports: – "9200:9200" – "9300:9300" volumes: – /usr/share/elasticsearch/data […]

如何用CLI标志configurationelasticsearch 5.0的发布地址?

我用elasticsearch 2.0启动标志来configurationpublish_addres。 我需要configuration发布地址,因为我想在Docker容器中启动elasticsearch并从外部访问它。 所以发布地址必须是docker主机的IP,这在我的情况下是192.168.99.100。 我想访问端口9201上的elasticsearch。 docker run -d -p 9201:9201 –name elasticsearch_test elasticsearch:5.2-alpine elasticsearch -Enetwork.publish_host="192.168.99.100" -Ehttp.port="9201" 这就像旧命令一样 docker run -d -p 9201:9201 –name elasticsearch_test elasticsearch:2.4.1 elasticsearch -Des.network.publish_host="192.168.99.100" -Des.http.port="9201" 但是,当我启动容器,并查看日志我没有得到发布地址192.168.99.100:9201,但192.168.99.100:9300和172.17.0.2:9201。 如何强制elasticsearch使用我的地址和端口的组合? 提前致谢 docker logs elasticsearch_test输出docker logs elasticsearch_test [2017-02-13T09:17:03,095][INFO ][oenNode ] [] initializing … [2017-02-13T09:17:03,252][INFO ][oeeNodeEnvironment ] [ntIFoHQ] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/sda1)]], net usable_space […]

这些设置是如何使Elasticsearch在开发模式下运行的?

我一直在Docker容器中使用Elasticsearch进行testing。 通过其他含义来嘲笑响应,我发现从我的生产服务器导入一个小型数据集并将其用作testing数据更容易,更易于维护和可靠。 我最近碰到一个问题,我没有访问主机系统的configuration设置,将vm.max_map_countboost到262144 。 ES不会启动。 所以,在努力寻找替代品之后,我意识到我可以通过设置以下内容来设置ES在开发模式下运行: http.host = 0.0.0.0 transport.host = 127.0.0.1 我通过阅读文档了解这些参数是指什么。 但是仍然不清楚为什么ES使用开发模式运行。 那将是什么限制。 谁会知道为什么? 提前致谢。 裁判: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html

Docker ElasticSearch 5无法启动。 即使ELK不启动

elasticsearch:5不启动。 获取以下错误: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 我尝试了很多组合,比如设置Xms,Xmx等等。