[英]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.