Skip to content

Instantly share code, notes, and snippets.

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
$ 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
$ tar -xzvf kafka_2.9.2-
$ mv kafka_2.9.2- kafka


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
# SDKDev Setting - END

MongoDB 3.0

$ sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10
$ echo "deb "$(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