<commit_before>apt-get update
apt-get install -y unzip  openjdk-6-jdk wget git
wget -q http://mirror.gopotato.co.uk/apache/kafka/0.8.1.1/kafka_2.8.0-0.8.1.1.tgz -O /tmp/kafka_2.8.0-0.8.1.1.tgz
tar xfz /tmp/kafka_2.8.0-0.8.1.1.tgz -C /usr/share

groupadd kafka
useradd --gid kafka --home-dir /home/kafka --create-home --shell /bin/bash kafka

chown -R kafka:kafka /usr/share/kafka_2.8.0-0.8.1.1
ln -s /usr/share/kafka_2.8.0-0.8.1.1 /usr/share/kafka

sed -i 's/zookeeper.connect=localhost:2181/zookeeper.connect=192.168.50.3:2181/' /usr/share/kafka_2.8.0-0.8.1.1/config/server.properties

<commit_msg>Auto-start kafka at installation. This has to do for now.<commit_after>apt-get update
apt-get install -y unzip  openjdk-6-jdk wget git
wget -q http://mirror.gopotato.co.uk/apache/kafka/0.8.1.1/kafka_2.8.0-0.8.1.1.tgz -O /tmp/kafka_2.8.0-0.8.1.1.tgz
tar xfz /tmp/kafka_2.8.0-0.8.1.1.tgz -C /usr/share

groupadd kafka
useradd --gid kafka --home-dir /home/kafka --create-home --shell /bin/bash kafka

chown -R kafka:kafka /usr/share/kafka_2.8.0-0.8.1.1
ln -s /usr/share/kafka_2.8.0-0.8.1.1 /usr/share/kafka

sed -i 's/zookeeper.connect=localhost:2181/zookeeper.connect=192.168.50.3:2181/' /usr/share/kafka_2.8.0-0.8.1.1/config/server.properties

sudo /bin/su - kafka -c "/usr/share/kafka_2.8.0-0.8.1.1/bin/kafka-server-start.sh -daemon /usr/share/kafka_2.8.0-0.8.1.1/config/server.properties"
{'fraction_non_alphanumeric': 0.1930835734870317, 'fraction_numerical': 0.10230547550432277, 'mean_word_length': 2.9126760563380283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 18, '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': '3684612', 'n_tokens_mistral': 718, 'n_tokens_neox': 686, 'n_words': 100}