Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kafka with Spark

Ubuntu 설치

Oracle JDK 7 Install

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-set-default

Zookeeper Install and Setting

$ wget http://apache.mirror.cdnetworks.com/zookeeper/stable/zookeeper-3.4.6.tar.gz
$ tar -xzvf zookeeper-3.4.6.tar.gz
$ mv zookeeper-3.4.6 zk
$ cd zk/conf
$ cp zoo_sample.cfg zoo.cfg

Install Scala(2.9.2)

$ sudo apt-get install scala

Kafka Download

$ wget http://apache.mirror.cdnetworks.com/kafka/0.8.2.1/kafka_2.9.2-0.8.2.1.tgz
$ tar -xzvf kafka_2.9.2-0.8.2.1.tgz
$ mv kafka_2.9.2-0.8.2.1.tgz kafka

Env

vi .bashrc
# SDKDev Setting - START
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export ZK_HOME=/home/rx78/sdkdev_backend/zk
export KAFKA_HOME=/home/rx78/sdkdev_backend/kafka
export PATH=$PATH:$JAVA_HOME/bin:$ZK_HOME/bin:$KAFKA_HOME/bin
# SDKDev Setting - END

MongoDB 3.0

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment