2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux CentOS7にKafkaをインストールする

Last updated at Posted at 2015-06-05

各種バージョンは現在最新の物だが時間がたつと変更されるので公式サイトを参照のこと

Kafka ダウンロード

curl -O http://ftp.yz.yamagata-u.ac.jp/pub/network/apache/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz
tar -xzvf kafka_2.10-0.8.2.1.tgz

Scala ダウンロード (Kafkaがscalaで出来ているので必要)

curl -O http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.rpm
rpm -ivh scala-2.10.5.rpm

Zookeeperダウンロード (Kafkaの起動に必要)

curl -O http://ftp.jaist.ac.jp/pub/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
tar -xzvf zookeeper-3.4.6.tar.gz

Zookeeper起動

bin/zkServer.sh start conf/zoo_sample.cfg

この方法で起動しないとkafkaの起動に失敗する

Kafka起動

bin/kafka-server-start.sh config/server.properties

tmuxでセッション作ってターミナルを管理すると便利です

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?