<commit_before># Spark cluster deployer [![Build Status](https://travis-ci.org/t3g7/spark-cluster-deploy.svg?branch=master)](https://travis-ci.org/t3g7/spark-cluster-deploy) [![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://registry.hub.docker.com/u/t3g7/docker-spark/)

Apache Spark image in a Docker container, based on `ubuntu:15.04`. Cluster deployed with Docker Compose and orchestrated with Docker Swarm.

Heavily inspired by [gettyimages/docker-spark](https://github.com/gettyimages/docker-spark).

### Run the cluster locally on VirtualBox

In `scripts`, run :

	./bootstrap.sh

This script will set up a key-value store using Consul, a Swarm cluster with a master and a slave, and an overlay network for multi-host networking.

### After creating the nodes

Connect to the Swarm master with:
<commit_msg>Update readme description for cassandra<commit_after># Spark cluster deployer [![Build Status](https://travis-ci.org/t3g7/spark-cluster-deploy.svg?branch=master)](https://travis-ci.org/t3g7/spark-cluster-deploy) [![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://registry.hub.docker.com/u/t3g7/docker-spark/)

Apache Spark image in a Docker container, based on `java:8`. Cluster deployed with Docker Compose and orchestrated with Docker Swarm.

Heavily inspired by [gettyimages/docker-spark](https://github.com/gettyimages/docker-spark).

Official image for [Cassandra](https://hub.docker.com/_/cassandra/) is used and installed on the same nodes as Spark slaves.

### Run the cluster locally on VirtualBox

In `scripts/`, run :

	./bootstrap.sh

This script will set up a key-value store using Consul, a Swarm cluster with a master and a slave, and an overlay network for multi-host networking.

### After creating the nodes

Connect to the Swarm master with:

{'fraction_non_alphanumeric': 0.1210958904109589, 'fraction_numerical': 0.009315068493150684, 'mean_word_length': 4.760252365930599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2156833', 'n_tokens_mistral': 605, 'n_tokens_neox': 551, 'n_words': 175}