<commit_before>#!/bin/bash
source "/vagrant/scripts/common.sh"

#http://mesosphere.com/docs/getting-started/datacenter/install/
#/usr/bin/mesos-init-wrapper

function setupMesos {
	echo "zk://mesosnode1:2181/mesos" > /etc/mesos/zk
	echo "1" > /etc/mesos-master/quorum
	#disable auto start of upstart
	rm -rf /etc/init/mesos-master.conf
	rm -rf /etc/init/mesos-slave.conf
	echo 'docker,mesos' > /etc/mesos-slave/containerizers
	echo '5mins' > /etc/mesos-slave/executor_registration_timeout
}

function installMesos {
	echo "install mesos"
    #https://mesosphere.com/docs/tutorials/install_ubuntu_debian/#step-0 http://mesos.apache.org/gettingstarted/
	sudo apt-key adv --keyserver keyserver.ubuntu.<EMAIL> --recv E56151BF
	DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
	CODENAME=$(lsb_release -cs)
	echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" |  sudo tee /etc/apt/sources.list.d/mesosphere.list
	apt-get -y update
	apt-get -y install mesos marathon chronos
	
	#for centos
	#rpm -Uvh http://repos.mesosphere.io/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm
	#yum install -y mesos
	#if resourceExists $MESOS_ARCHIVE; then
	#	echo "install mesos example from remote file"<commit_msg>disable mesos services in slave node out of box<commit_after>#!/bin/bash
source "/vagrant/scripts/common.sh"

#http://mesosphere.com/docs/getting-started/datacenter/install/
#/usr/bin/mesos-init-wrapper

function setupMesos {
	echo "zk://mesosnode1:2181/mesos" > /etc/mesos/zk
	echo "1" > /etc/mesos-master/quorum
	#disable auto start of upstart
	rm -rf /etc/init/mesos-master.conf
	rm -rf /etc/init/marathon.conf
	rm -rf /etc/init/mesos-slave.conf
	rm -rf /etc/init/chronos.conf
	echo 'docker,mesos' > /etc/mesos-slave/containerizers
	echo '5mins' > /etc/mesos-slave/executor_registration_timeout
}

function installMesos {
	echo "install mesos"
    #https://mesosphere.com/docs/tutorials/install_ubuntu_debian/#step-0 http://mesos.apache.org/gettingstarted/
	sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
	DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
	CODENAME=$(lsb_release -cs)
	echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" |  sudo tee /etc/apt/sources.list.d/mesosphere.list
	apt-get -y update
	apt-get -y install mesos marathon chronos
	
	#for centos
	#rpm -Uvh http://repos.mesosphere.io/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm
	#yum install -y mesos
	#if resourceExists $MESOS_ARCHIVE; then
	#	echo "install mesos example from remote file"
{'fraction_non_alphanumeric': 0.1490289338089576, 'fraction_numerical': 0.012683313515655966, 'mean_word_length': 4.1405295315682284, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 12, 'https://': 2, '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': '786943', 'n_tokens_mistral': 1042, 'n_tokens_neox': 953, 'n_words': 189}