Tag: elasticsearch

Docker不会发布选定的端口

我创build了一个在Docker上运行ElasticSearch的容器(发布了9200和9300,因此可以通过主机访问它们)。 $ docker run –name books-es -p 9200:9200 -p 9300:9300 -d elasticsearch 65937a0f8967390d33abaad50b55975cb9292be6692d29791c2e6c37ac5d2832 然后我testing它是否正在运行: $ docker exec books-es curl 127.0.0.1:9200 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 315{ 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0 "name" : "Masque", "cluster_name" : […]

Spark应用程序无法写入docker中运行的elasticsearch集群

我有一个在127.0.0.1:9200上收听的elasticsearch docker镜像,我使用sense和kibana进行了testing,工作正常,我能够索引和查询文档。 现在,当我尝试从火花App写入它 val sparkConf = new SparkConf().setAppName("ES").setMaster("local") sparkConf.set("es.index.auto.create", "true") sparkConf.set("es.nodes", "127.0.0.1") sparkConf.set("es.port", "9200") sparkConf.set("es.resource", "spark/docs") val sc = new SparkContext(sparkConf) val sqlContext = new SQLContext(sc) val numbers = Map("one" -> 1, "two" -> 2, "three" -> 3) val airports = Map("arrival" -> "Otopeni", "SFO" -> "San Fran") val rdd = sc.parallelize(Seq(numbers, airports)) rdd.saveToEs("spark/docs") 它无法连接,并继续重试 […]

Docker-compose.yml不适用于elasticserch

使用的版本: Docker-compose = 1.3.2 Docker = 1.12.3 Os: Ubuntu-14.04LTS 1:撰写文件内容: 泊坞窗,compose.yml elk: image: elasticsearch:latest ports: – "9200:9200" – "9300:9300" volumes: – ./Elasticsearch/data:/etc/elasticsearch/data – ./Elasticsearch/config/elasticsearch.yml:/etc/elasticsearch/config/elasticsearch.yml command: bash -c "service elasticsearch start" tty : true 2:$正在运行撰写文件: docker-compose up 获得关注: Attaching to elkdockerdir_elk_1 elk_1 | [2016-11-14T06:28:18,458][INFO ][oenNode ] [] initializing … elk_1 | [2016-11-14T06:28:18,573][INFO ][oeeNodeEnvironment ] [UERHECj] using […]

使用Kops + Docker 1.11在Kubernetes pod中设置sysctl密钥

我使用Kops 1.4.4在AWS上启动我的Kubernetes集群。 我的Elasticsearch窗格要求我将内核参数vm.max_map_count至less设置为262144. Kubernetes 1.5.1具有systctlfunction,但它需要Docker> = 1.12。 Kops目前使用较小的Docker版本构build我的节点,因此我试图弄清楚如何自动设置内核参数。 如果我尝试使用RUN sysctl -w vm.max_map_count=262144将其设置在我的Dockerfile中, RUN sysctl -w vm.max_map_count=262144收到错误消息:'sysctl:setting key'vm.max_map_count':只读文件系统'。 有没有解决方法?

AWS容器服务:设置max_map_count

我试图在AWS容器服务上运行Elasticsearch。 这里是我所遵循的文档: https : //www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode vm_map_max_count设置应该在/etc/sysctl.conf中永久设置: $ grep vm.max_map_count /etc/sysctl.conf vm.max_map_count = 262144 要在实时系统上应用此设置,请键入:sysctl -w vm.max_map_count = 262144 有什么办法通过脚本设置vm.max_map_count? 我不想每次运行一个新的容器时手动执行。 谢谢

Windows中的ElasticSearch docker image vm max map coun

我是docker和弹性search的新手。 我正在使用Windows 7机器。 我正在使用docker – 组成起来docker。 我的XML文件有elasticsearch:image:elasticsearch:5.1.1环境:ES_JAVA_OPTS:“-Xms1g -Xmx1g” 以及其他链接的图像。 我使用dockerpopupelasticserach图像期间,我得到以下错误 [36melasticsearch_1 |←[0m ERROR: bootstrap checks failed [36melasticsearch_1 |←[0m max virtual memory areas vm.max_map_count [65530] i 太低,增加到至less[262144] [36melasticsearch_1 |←[0m [2017-02-08T11:06:51,752] [INFO] [oenNode 我search了解决scheme,并在任何地方build议使用sudo sysctl vm.max_map_count=262144 但在Windows中,sysctl不在那里。 没有明确的步骤给予Windows。 其他泊坞窗图像即将在我的机器,所以docker工人在我的机器。 有人可以提供解决这个问题的线索吗?

这些设置是如何使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等等。

docker弹性search不启动

我在我的angular度应用程序中从弹性search中检索细节。 当我在我的本地机器上安装弹性search时工作。 我不得不将以下几行添加到elasticsearch.yml文件中,以使其与angularApp一起工作。 http.cors.allow-origin: "/.*/" http.cors.enabled: true 现在弹性search服务器与docker一起安装。 当我没有添加这两行时,它也工作。 但是,当我添加并重新启动弹性search,它给了我以下错误。 {1.4.2}: Setup Failed … – SettingsException[Failed to load settings from [file:/elasticsearch/config/elasticsearch.yml]] ScannerException[while scanning a simple key; could not found expected ':'; in 'reader', line 7, column 3: http.cors.enabled: true ^] org.elasticsearch.common.settings.SettingsException: Failed to load settings from [file:/elasticsearch/config/elasticsearch.yml] at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromStream(ImmutableSettings.java:947) at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromUrl(ImmutableSettings.java:931) at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:77) at org.elasticsearch.bootstrap.Bootstrap.initialSettings(Bootstrap.java:106) […]

在链接的Docker容器中发出http请求时出错

我正在用Angular.js 2,Elasticsearch和Docker构build一个Web应用程序。 我试图通过我的Angular应用程序使用链接的URL“ http:// search:9200 / _cat / health ”来访问Elasticsearch,但我得到一个GET http://search:9200/_cat/health net::ERR_NAME_NOT_RESOLVED错误。 奇怪的是,当我从web应用程序的容器中curl -XGET "http://search:9200/_cat/health" ,一切都很好,我得到了正确的回应。 这是我各自docker-compose.yml文件 version: '2' services: search: image: elasticsearch:latest command: elasticsearch -Des.network.host=0.0.0.0 ports: – "9200:9200" – "9300:9300" web: build: . command: npm start volumes: – .:/visfx ports: – "3000:3000" links: – search 这里也是对elasticsearch服务的调用 @Injectable() export class ElasticsearchService { private _esUrl = […]