How To Install Apache Kafka on Ubuntu 14.04

发布时间:2016-12-31 7:26:31编辑 分享查询网我要评论
本篇文章主要介绍了"How To Install Apache Kafka on Ubuntu 14.04 ",主要涉及到How To Install Apache Kafka on Ubuntu 14.04 方面的内容,对于How To Install Apache Kafka on Ubuntu 14.04 感兴趣的同学可以参考一下。

打算学习kafka ,接触一些新的知识。加油!!!




Apache Kafka is a popular distributed message broker designed to handle large volumes of real-time data efficiently. A Kafka cluster is not only highly scalable and fault-tolerant, but it also has a much higher throughput compared to other message brokers such as ActiveMQ and RabbitMQ. Though it is generally used as a pub/sub messaging system, a lot of organizations also use it for log aggregation because it offers persistent storage for published messages.

In this tutorial, you will learn how to install and use Apache Kafka on Ubuntu 14.04.



To follow along, you will need:


Step 1 — Create a User for Kafka

As Kafka can handle requests over a network, you should create a dedicated user for it. This minimizes damage to your Ubuntu machine should the Kafka server be comprised.

Note: After setting up Apache Kafka, it is recommended that you create a different non-root user to perform other tasks on this server.

As root, create a user called kafka using the useradd command:

  • useradd kafka -m

Set its password using passwd:

  • passwd kafka

Add it to the sudo group so that it has the privileges required to install Kafka's dependencies. This can be done using the adduser command:

  • adduser kafka sudo

Your Kafka user is now ready. Log into it using su:

下一篇:lumen 构建api(dingo api)