skip to Main Content

I am trying to using elassandra (which is elasticsearch + cassandra) in Docker image, so I am beginner with it. 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. 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.

enter image description here

Thanks for your attention. Have a nice day!

2

Answers


  1. Looks like Aaron is correct. According to the code, it is injected into the same location as cassandra.yaml which is /etc/cassandra.

    Source: docker-entrypoint.sh

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

    Source: Dockerfile

    ENV CASSANDRA_CONFIG /etc/cassandra
    
    Login or Signup to reply.
  2. 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.

    Thanks to Erick for the validation!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search