Git Product home page Git Product logo

docker-elassandra's People

Contributors

alexanderjardim avatar atoulme avatar dbarthe avatar docker-library-bot avatar j0wi avatar leleueri avatar ltagliamonte avatar sage-service-user avatar tianon avatar wgerlach avatar yosifkit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-elassandra's Issues

Question about the value of max_binlog_cache_size

Thanks for providing this useful container.

I am doing a research aiming at finding issues in configuration files. I have a question about one MySQL config: max_binlog_cache_size. It seems the official document says "The maximum recommended value is 4GB; this is due to the fact that MySQL currently cannot work with binary log positions greater than 4GB."

However, the default value is 18446744073709551615, which is much larger than the recommended value.

Shall we change the value to 4GB?
Thanks!

Elastic listen address

My setup: elassandra runs in a docker container, which runs inside DockerToolbox ( virtual box machine ) which in turn runs inside mac osx - the host. Inside DockerToolbox, the container is reachable on address 0.0.0.0:PORT.

In docker-compose.yml I have:

      environment:
          - CASSANDRA_CLUSTER_NAME=arbotti_cluster
          - CASSANDRA_SEEDS=DC1_CASSANDRA_SEED
          - CASSANDRA_PASSWORD_SEEDER=yes
          - CASSANDRA_PASSWORD=password123
          - CASSANDRA_DC=DC1
          - CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
          - CASSANDRA_RACK=rack1
      # Exposing ports for inter cluster communication
      expose:
            - 7000
            - 7001
            - 7199
            - 9160
            - 9042
            - 9200
      # Exposing ports on host (docker toolbox) => host_port:docker_port
      ports:
        - "9042:9042"
        - "9200:9200"

Elastic search listens on 0.0.0.0:9200
Cassandra listens on 0.0.0.0:9042

In the firewall between the host and DockerToolbox, these ports are open. I can query both without problems from the host.

from the host: curl 0.0.0.0:9200 gives:

{
"name" : "172.18.0.3", <-- I DO NOT UNDERSTAND WHERE THIS COMES FROM
"cluster_name" : "arbotti_cluster",
"cluster_uuid" : "a0aa99db-c6a0-4823-b3de-f6e729a98e5c",
"version" : {
"number" : "5.5.0",
"build_hash" : "37f8692",
"build_date" : "2018-01-06T20:52:07.026Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}
Inside DockerToolbox: docker ps produces:
e93d0a8e2891 strapdata/elassandra "/docker-entrypoin..." 21 hours ago Up 21 hours 7000-7001/tcp, 7199/tcp, 0.0.0.0:9042->9042/tcp, 9160/tcp, 9300/tcp, 0.0.0.0:9200->9200/tcp a_DC1_CASSANDRA_SEED_1

In my application driver settings I have:

  elasticsearch: {
    apiVersion: '5.5',
    sniffOnStart: true,
    host: 'http://0.0.0.0:9200',
    requestTimeout: 60000
  }

However, the application (running on host) tries to reach elastic by the IP 172.18.0.3 and produces the error:

Elasticsearch ERROR: 2018-01-12T17:27:26Z
Error: Request error, retrying
HEAD http://172.18.0.3:9200/arbotti => socket hang up

It seems as if the driver ignores the elastic search IP setting and gets it from elastic instead. Elastic mentions: "name" : "172.18.0.3" in its response. Should I force elastic to listen on 0.0.0.0 ? Can somebody please explain why elastic mentions the address "172.18.0.3" in its response and how this can be changed?

Default logs settings

By default, final image contains too high logs LVL. That results in no logs for even critical cases. All you see is

Starting cassandra with org.apache.cassandra.service.ElassandraDaemon
Elassandra started

docker not found

$ docker pull strapdata/elassandra
Using default tag: latest
Error response from daemon: manifest for strapdata/elassandra:latest not found

no files in /var/lib/cassandra

Hi!

In /opt/elassandra-2.4.5.3/conf/cassandra.yaml

# Directory where Cassandra should store hints.
# If not set, the default directory is $CASSANDRA_HOME/data/hints.
# hints_directory: /var/lib/cassandra/hints
root@01dd9a3da697:/opt/elassandra-2.4.5.3# echo $CASSANDRA_HOME
/opt/elassandra-2.4.5.3

All files cassandra save in directory /opt/elassandra-2.4.5.3/data

Pls add env $CASSANDRA_HOME=/var/lib/cassandra in default docker images

Questions about enable_materialized_views and enable_transient_replication

Thanks for providing this useful container.

I have a question about two cassandra configs: enable_materialized_views and enable_transient_replication. It seems the official document says "Materialized views are considered experimental and are not recommended for production use." And the default value for these two parameters are False in the document. They say they will disable them in Cassandra 4.

However, in the latest version of Cassandra (3.11.4), the default value for them are still True, as is the setting in your container's cassandra.yaml.

Shall we disable them manually for now?
Thanks!

Error on Docker Desktop with Apple M1 chip

I get this error when I try to create a container. I tried explicitly specifying a platform too. Didn't work. Is there any way to get this to work on Apple M1 chip?

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x4cb21f, 0x9)
	/usr/local/go/src/runtime/panic.go:566 +0x95
runtime.newosproc(0xc42002a000, 0xc420039fc0)
	/usr/local/go/src/runtime/os_linux.go:160 +0x194
runtime.newm(0x4d6db8, 0x0)
	/usr/local/go/src/runtime/proc.go:1572 +0x132
runtime.main.func1()
	/usr/local/go/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x53ae00)
	/usr/local/go/src/runtime/asm_amd64.s:298 +0x79
runtime.mstart()
	/usr/local/go/src/runtime/proc.go:1079

goroutine 1 [running]:
runtime.systemstack_switch()
	/usr/local/go/src/runtime/asm_amd64.s:252 fp=0xc420024768 sp=0xc420024760
runtime.main()
	/usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200247c0 sp=0xc420024768
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc4200247c8 sp=0xc4200247c0```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.