strapdata / docker-elassandra Goto Github PK
View Code? Open in Web Editor NEWDocker Image packaging for Elassandra
License: Apache License 2.0
Docker Image packaging for Elassandra
License: Apache License 2.0
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!
How can multiple containers can be deployed?
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?
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 pull strapdata/elassandra
Using default tag: latest
Error response from daemon: manifest for strapdata/elassandra:latest not found
Running nodetool
command inside container cause next error:
nodetool initial heap size is much than maximum
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
Hello,
Do you aim at publishing v5.5.0.5 to docker hub soon ?
Thank you.
Without this port ElasticSearch's nodes not see each other
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!
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```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.