{"id":30421,"date":"2019-05-07T14:29:56","date_gmt":"2019-05-07T19:29:56","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30421"},"modified":"2022-12-09T05:17:17","modified_gmt":"2022-12-09T11:17:17","slug":"how-to-install-apache-kafka-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/","title":{"rendered":"How to Install Apache Kafka on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-30512\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\" alt=\"How to Install Apache Kafka on Ubuntu 18.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will show you how to install and set Apache Kafka on a <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">VPS running Ubuntu 18.04<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright wp-image-30513\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-apache-kafka-on-ubuntu18.04-vps.jpg\" alt=\"Install Apache Kafka on an Ubuntu 18.04 VPS\" width=\"150\" height=\"108\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-apache-kafka-on-ubuntu18.04-vps.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install-apache-kafka-on-ubuntu18.04-vps-150x109.jpg 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>Kafka or Apache Kafka is a distributed messaging system based on the principle of the pub-sub (publish-subscribe) model. It allows us to publish and subscribe to a stream of records that can be categorized. It is an <strong>incredibly fast<\/strong>, <strong>highly scalable<\/strong>,<strong> fault-tolerant<\/strong> system, and it&#8217;s designed to process large amounts of data in<strong> real time<\/strong>. Apache Kafka can be used as an alternative to a message broker as well, which allows us to process\/transform a stream of records. Kafka can be used as a messaging system, but in a rather incomparably huge scale. Overall, Apache Kafka is a very powerful tool when used correctly.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f3d5250d622\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f3d5250d622\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-1-Log-in-via-SSH-and-Update-the-System\" >Step 1: Log in via SSH and Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-2-Add-a-System-User\" >Step 2: Add a System User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-3-Install-Java\" >Step 3: Install Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-4-Download-Apache-Kafka\" >Step 4: Download Apache Kafka<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-5-Configure-Apache-Kafka\" >Step 5: Configure Apache Kafka<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-6-Create-a-System-Unit-File-for-Apache-Kafka\" >Step 6: Create a System Unit File for Apache Kafka<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-7-Create-a-Topic\" >Step 7: Create a Topic<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-8-Send-Messages-using-Apache-Kafka\" >Step 8: Send Messages using Apache Kafka<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#Step-9-Use-Apache-Kafka-as-a-Consumer\" >Step 9: Use Apache Kafka as a Consumer<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A Server running Ubuntu 18.04 with at least 4GB of memory. For the purposes of this tutorial, we&#8217;ll be using one of our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Managed Ubuntu 18.04 VPS<\/a>es.<\/li>\n<li>SSH access with root privileges, or access to the &#8220;root&#8221; user itself<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update-the-System\"><\/span>Step 1: Log in via SSH and Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your Ubuntu 18.04 VPS with SSH as the root user:<\/p>\n<pre>ssh root@IP_Address -p Port_number<\/pre>\n<p>Replace &#8220;root&#8221; with a user that has sudo privileges if necessary. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server&#8217;s respective IP address and SSH port.<\/p>\n<p>Once that is done, you can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this output:<\/p>\n<pre>Distributor ID: Ubuntu\r\nDescription: Ubuntu 18.04.2 LTS\r\nRelease: 18.04\r\nCodename: bionic<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre># apt update &amp;&amp; apt upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Add-a-System-User\"><\/span>Step 2: Add a System User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s create a new user called &#8216;kafka&#8217;, after which we will add this new user as a sudoer.<\/p>\n<pre># adduser kafka\r\n# usermod -aG sudo kafka<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Java\"><\/span>Step 3: Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kafka is written in Java, so a JVM is required to get it working. In this tutorial, we will use OpenJDK 11, as it is the standard version of Java that comes with Ubuntu since September 2018.<\/p>\n<pre># apt install default-jre<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Download-Apache-Kafka\"><\/span>Step 4: Download Apache Kafka<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now let\u2019s <a href=\"https:\/\/kafka.apache.org\/downloads\">download Kafka<\/a>. The latest download link at the time of writing has already been entered in the example for you.<\/p>\n<pre># su - kafka<\/pre>\n<pre>wget https:\/\/www-us.apache.org\/dist\/kafka\/2.2.0\/kafka_2.12-2.2.0.tgz -O kafka.tgz<\/pre>\n<p>Now that the Apache Kafka binary has been downloaded, now we need to extract it in our Kafka user directory<\/p>\n<pre>$ tar -xzvf kafka.tgz --stripe 1<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Configure-Apache-Kafka\"><\/span>Step 5: Configure Apache Kafka<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is time to configure Apache Kafka. By default, we are not allowed to delete topics, categories or groups in which messages can be posted. To change this behavior, we need to edit the default configuration.<\/p>\n<pre>$ nano ~\/config\/server.properties<\/pre>\n<p>Append the following line to the last line of the configuration file.<\/p>\n<p>delete.topic.enable = true<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Create-a-System-Unit-File-for-Apache-Kafka\"><\/span>Step 6: Create a System Unit File for Apache Kafka<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Zookeeper is required for running Kafka. Kafka uses zookeeper, so we&#8217;ll need to first start an instance of the Zookeeper server prior to starting the Apache Kafka service. In this tutorial, we will use the convenience script packaged with Kafka to get a quick-and-dirty single-node Zookeeper instance.<\/p>\n<p>Open a new file at the filepath <code>\/etc\/systemd\/system\/zookeeper.service<\/code>, and open it in your preferred text editor. We&#8217;ll be using <code>nano<\/code> for this tutorial.<\/p>\n<pre>$ sudo nano \/etc\/systemd\/system\/zookeeper.service<\/pre>\n<p>Paste the following lines into it:<\/p>\n<pre>[Unit]\r\nRequires=network.target remote-fs.target\r\nAfter=network.target remote-fs.target\r\n[Service]\r\nType=simple\r\nUser=kafka\r\nExecStart=\/home\/kafka\/bin\/zookeeper-server-start.sh \/home\/kafka\/config\/zookeeper.properties\r\nExecStop=\/home\/kafka\/bin\/zookeeper-server-stop.sh\r\nRestart=on-abnormal\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Now, let&#8217;s create a system unit file for kafka at the filepath <code>\/etc\/systemd\/system\/kafka.service<\/code>:<\/p>\n<pre>$ sudo nano \/etc\/systemd\/system\/kafka.service<\/pre>\n<p>Paste the following lines into the file:<\/p>\n<pre>[Unit]\r\nRequires=zookeeper.service\r\nAfter=zookeeper.service\r\n[Service]\r\nType=simple\r\nUser=kafka\r\nExecStart=\/bin\/sh -c '\/home\/kafka\/bin\/kafka-server-start.sh \/home\/kafka\/config\/server.properties &gt; \/home\/kafka\/kafka.log 2&gt;&amp;1'\r\nExecStop=\/home\/kafka\/bin\/kafka-server-stop.sh\r\nRestart=on-abnormal\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>The new system units have been added, so let&#8217;s enable Apache Kafka to automatically run on boot, and then run the service.<\/p>\n<pre>$ sudo systemctl enable kafka\r\n$ sudo systemctl start kafka<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Create-a-Topic\"><\/span>Step 7: Create a Topic<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this step, we will create a topic named \u201cFirstTopic\u201d, with a single partition and only one replica:<\/p>\n<pre>$ bin\/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic FirstTopic\r\n\r\nCreated topic \"FirstTopic\".\r\n<\/pre>\n<p>The replication-factor value describes how many copies of data will be created. We are running with a single instance, so the value would be 1.<\/p>\n<p>The partitions value describe the number of brokers you want your data to be split between. We are running with a single broker, so the value would be 1.<\/p>\n<p>Now you can see the created topic on Kafka by running the list topic command:<\/p>\n<pre>$ bin\/kafka-topics.sh --list --zookeeper localhost:2181\r\n\r\nFirstTopic\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-8-Send-Messages-using-Apache-Kafka\"><\/span>Step 8: Send Messages using Apache Kafka<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Apache Kafka comes with a command line client that will take input from a file or standard input and send it out as messages to the Kafka cluster. The \u201cproducer\u201d is the process that has responsibility for putting data into our Kafka service. By default, Kafka sends each line as a separate message.<\/p>\n<p>Let\u2019s run the producer and then type a few messages into the console to send to the server.<\/p>\n<pre>$ bin\/kafka-console-producer.sh --broker-list localhost:9092 --topic FirstTopic\r\n\r\n&gt;Welcome to kafka\r\n&gt;This is the content of our first topic\r\n&gt;\r\n<\/pre>\n<p>Keep the terminal opened, and let&#8217;s proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-9-Use-Apache-Kafka-as-a-Consumer\"><\/span>Step 9: Use Apache Kafka as a Consumer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Apache Kafka also has a command line for the consumer to read data from Kafka &#8211; this is so that the consumer can use Kafka to display messages in a standard output.<\/p>\n<p>Run the following command in a new SSH session.<\/p>\n<pre>$ bin\/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic testTopic --from-beginning\r\n\r\nWelcome to kafka\r\nThis is the content of our first topic\r\n<\/pre>\n<p>That&#8217;s it! Apache Kafka has been successfully installed and set up. Now we can type some messages on the producer terminal as stated in the previous step. The messages will be immediately visible on our consumer terminal.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft wp-image-30514\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/installing-apache-kafka-on-ubuntu18.04.png\" alt=\"Installing Apache Kafka on Ubuntu 18.04\" width=\"179\" height=\"122\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/installing-apache-kafka-on-ubuntu18.04.png 220w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/installing-apache-kafka-on-ubuntu18.04-150x102.png 150w\" sizes=\"(max-width: 179px) 100vw, 179px\" \/>Of course, you don\u2019t have to know how to install Apache Kafka on Ubuntu 18.04 if you have an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 18.04 VPS<\/a> hosted with us. If you do, you can simply ask our support team to install Apache Kafka on Ubuntu 18.04 for you. They are available 24\/7 and will be able to help you with the installation of Apache Kafka, as well as any additional requirements that you may have.<\/p>\n<p><span style=\"color: #ff0000;\">PS<\/span>. If you enjoy reading this blog post on how to install Apache Kafka on Ubuntu 18.04, feel free to share it on social networks by using the shortcuts below, or simply leave a comment down in the comments section. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install and set Apache Kafka on a VPS running Ubuntu 18.04. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Apache Kafka on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#more-30421\" aria-label=\"Read more about How to Install Apache Kafka on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":30512,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1713,13,1698],"tags":[1777,1779],"class_list":["post-30421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other","category-tutorials","category-ubuntu","tag-apache-kafka","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Apache Kafka on Ubuntu 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-07T19:29:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T11:17:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Apache Kafka on Ubuntu 18.04\",\"datePublished\":\"2019-05-07T19:29:56+00:00\",\"dateModified\":\"2022-12-09T11:17:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/\"},\"wordCount\":936,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\",\"keywords\":[\"Apache Kafka\",\"Ubuntu 18.04\"],\"articleSection\":[\"Other\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-05-07T19:29:56+00:00\",\"dateModified\":\"2022-12-09T11:17:17+00:00\",\"description\":\"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/how-to-install-apache-kafka-on-ubuntu18.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Apache Kafka on Ubuntu 18.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-apache-kafka-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache Kafka on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting","description":"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Apache Kafka on Ubuntu 18.04","og_description":"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-05-07T19:29:56+00:00","article_modified_time":"2022-12-09T11:17:17+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Apache Kafka on Ubuntu 18.04","datePublished":"2019-05-07T19:29:56+00:00","dateModified":"2022-12-09T11:17:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/"},"wordCount":936,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg","keywords":["Apache Kafka","Ubuntu 18.04"],"articleSection":["Other","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/","name":"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg","datePublished":"2019-05-07T19:29:56+00:00","dateModified":"2022-12-09T11:17:17+00:00","description":"How to Install Apache Kafka on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/how-to-install-apache-kafka-on-ubuntu18.04.jpg","width":742,"height":372,"caption":"How to Install Apache Kafka on Ubuntu 18.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-apache-kafka-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache Kafka on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=30421"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30421\/revisions"}],"predecessor-version":[{"id":43929,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30421\/revisions\/43929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/30512"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}