Files and notes about the Swiss Open Cultural Data Hackathon 2017. For information about the data, use cases, tools, etc, see the Wiki: https://github.com/dataramblers/hackathon17/wiki
-
see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html (especially paragraph on production mode)
-
Elasticsearch requires increased virtual memory. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
- Docker CE, most recent version
- recommended: 17.06
- see also hints.md
- most recent version
- see also hints.md
The technical environment runs in Docker containers. This enables everyone to run the infrastructure locally on their computers provided that Docker and Docker Compose are installed.
The package sources of many (Linux-) distributions do not contain the most recent version of Docker, and do not contain Docker Compose at all. You must most likely install them manually.
- Install Docker CE, preferably 17.06.
- https://docs.docker.com/engine/installation/
- Verify correct installation:
sudo docker run hello-world
- Install Docker-Compose.
- https://docs.docker.com/compose/install/
- Check installed version:
docker-compose --version
- Clone this repository.
git clone [email protected]:dataramblers/hackathon17.git
- Increase your virtual memory: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
Use sudo
for Docker commands.
- Make sure you have sufficient virtual memory:
sysctl vm.max_map_count
must output at least262144
.
- To increase the limits for one session:
sudo sysctl -w vm.max_map_count=262144
- To increase the limits permanently:
- Create a new
.conf
file in/etc/sysctl.d/
(e.g.10-vm-max-map-count.conf
, the prefix number just indicating the order in which the files are parsed) - Add the line
vm.max_map_count=262144
and save the file - Reread values for sysctl:
sudo sysctl -p --system
- Create a new
cd
to yourhackathon17
directory.docker-compose up
-> Docker loads the images and initializes the containers- Access to the running applications:
- Elasticsearch HTTP:
localhost:9200
- Elasticsearch TCP:
localhost:9300
- Zeppelin instance:
localhost:8080
- Flink RPC:
localhost:6123
- Dashboard of the Flink cluster:
localhost:8081
- If you want to stop and exit the docker containers:
docker-compose down
(in separate terminal) orCtrl-c
(in same terminal)