简体   繁体   English

Elassandra Docker 图像中的 conf/elasticsearch.yml 文件在哪里?

[英]Where is conf/elasticsearch.yml file in Elassandra Docker image?

I am trying to using elassandra (which is elasticsearch + cassandra) in Docker image, so I am beginner with it.我正在尝试在 Docker 图像中使用 elassandra(即 elasticsearch + cassandra),所以我是初学者。 In such case, my question can be beginner level, sorry for that:)在这种情况下,我的问题可能是初学者级别,对此感到抱歉:)

I have started that docker image and I'm able to inserting data and searching it but I don't know how to create a new cluster.我已经启动了 docker 图像,我能够插入数据并搜索它,但我不知道如何创建一个新集群。 According to this documentation I need to find elasticsearch.yml file in my image but I couldn't find it via docker cli terminal: https://elassandra.readthedocs.io/en/latest/configuration.html According to this documentation I need to find elasticsearch.yml file in my image but I couldn't find it via docker cli terminal: https://elassandra.readthedocs.io/en/latest/configuration.html

So far I tried to use "find. elasticsearch.yml" command but there is no file like that in entire directories of image.到目前为止,我尝试使用“find.elasticsearch.yml”命令,但在整个图像目录中没有这样的文件。

在此处输入图像描述

Thanks for your attention.感谢您的关注。 Have a nice day!祝你今天过得愉快!

Looks like Aaron is correct.看来亚伦是对的。 According to the code, it is injected into the same location as cassandra.yaml which is /etc/cassandra .根据代码,它被注入到与cassandra.yaml相同的位置,即/etc/cassandra

Source: docker-entrypoint.sh来源: docker-entrypoint.sh

# usage:
#   config_injection CASSANDRA $CASSANDRA_CONFIG/cassandra.yaml
#   config_injection ELASTICSEARCH $CASSANDRA_CONFIG/elasticsearch.yml

Source: Dockerfile来源: Dockerfile

ENV CASSANDRA_CONFIG /etc/cassandra

Converting my comment to an answer...将我的评论转换为答案...

I'm not sure where it is in the image.我不确定它在图像中的位置。 But I remember reading that it ends up in /etc/cassandra/ , same place as the cassandra.yaml .但我记得读到它以/etc/cassandra/结尾,与cassandra.yaml相同。

Thanks to Erick for the validation!感谢 Erick 的验证!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的 docker 图像中的 elasticsearch.yml 在哪里 - where is my elasticsearch.yml in my docker image elasticsearch.yml 使用 docker swarm 'configs' 加载时出现“只读文件系统”错误 - elasticsearch.yml "Read-only file system" error when loaded using docker swarm 'configs' elasticsearch.yml 在使用 Kubernetes ConfigMap 加载时是只读的 - elasticsearch.yml is read-only when loaded using Kubernetes ConfigMap 如何在Docker映像中替换conf文件中的文本 - How to replace a text in conf file in docker image docker:在哪里可以找到docker-compose.yml和机器的物理映像 - docker : where to find the docker-compose.yml and the physical image of the machine 如何通过Docker Image将Elassandra集成到我的Jhipster应用程序中? - How to integrate Elassandra in my Jhipster app by Docker Image? 将 httpd.conf 放在存储库中以创建 docker 映像的位置 - Where to put httpd.conf in the repository to create a docker image 如何使用rabbitmq docker撰写yml文件来构建docker镜像? - How to use the rabbitmq docker compose yml file to build docker image? 如何配置 docker-compose.yml 和 nginx conf 文件来读取外部驱动器? - How to configure docker-compose.yml and nginx conf file to read an external drive? 将nginx.conf文件放置在Docker容器中的位置 - Where to place nginx.conf file in docker container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM