{"id":1139,"date":"2020-04-29T14:16:12","date_gmt":"2020-04-29T19:16:12","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1139"},"modified":"2020-04-29T14:16:12","modified_gmt":"2020-04-29T19:16:12","slug":"how-to-install-apache-kafka-on-centos-7","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/","title":{"rendered":"How to Install Apache Kafka on CentOS 7"},"content":{"rendered":"<div id=\"linux-195562572\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this tutorial, we will show you how to install Apache Kafka on CentOS 7.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1143\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/configuration-apache-kafka-real-time-data-stream-platform-install-on-centos7-server.jpg\" alt=\"\" width=\"120\" height=\"195\" \/>Apache Kafka is an\u00a0open source messaging system and distributed streaming platform. It&#8217;s designed to be scalable, responsive, and provide an excellent experience when dealing with real-time data feeds. It&#8217;s great at providing real time analytics and processing of data &#8211; and thanks to its rich API support, developers can easily implement Apache Kafka and mold it to their exact needs.<\/p>\n<p>Let&#8217;s begin with the installation.<\/p>\n<p><!--more--><\/p>\n<h2>Prerequisites:<\/h2>\n<p>Apache Kafka has the following requirements:<\/p>\n<ul>\n<li>Java 8 or higher installed on the server<\/li>\n<li>ZooKeeper installed and running on the server<\/li>\n<li>A server\/VPS with a minimum of 4GB RAM.<\/li>\n<\/ul>\n<h2>Step 1. Connect to the Server<\/h2>\n<p>Log in to the server via SSH as user root using the following command:<\/p>\n<pre>ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n<p>replace &#8220;<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>&#8221; with your actual server IP address and SSH port number.<\/p>\n<h2>Step 2: Update OS Packages<\/h2>\n<p>Once logged in, make sure that your server OS packages are up-to-date by running the following commands:<\/p>\n<pre>yum clean all\r\nyum update<\/pre>\n<h2>Step 3: Install JAVA<\/h2>\n<p>Apache Kafka requires Java, so in order to run it on your server, we need to install Java first. We can check if Java is already installed on the server using this command:<\/p>\n<pre>which java<\/pre>\n<p>If there is no output, it means that Java is not installed on the server yet. We can install Java from a RPM package:<\/p>\n<pre>yum install java-1.8.0-openjdk.x86_64<\/pre>\n<p>We can check the Java version installed on the server by running the following command:<\/p>\n<pre>java -version<\/pre>\n<p>The output should be similar to this:<\/p>\n<pre>openjdk version \"1.8.0_191\"\r\nOpenJDK Runtime Environment (build 1.8.0_191-b12)\r\nOpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)<\/pre>\n<p>Add the &#8220;<span style=\"color: #ff0000;\">JAVA_HOME<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">JRE_HOME<\/span>&#8221; environment variables at the end of <code>\/etc\/bashrc<\/code> file:<\/p>\n<pre>sudo vi \/etc\/bashrc<\/pre>\n<p>Append the following lines to the original content of the file:<\/p>\n<pre>export JRE_HOME=\/usr\/lib\/jvm\/jre\r\nexport JAVA_HOME=\/usr\/lib\/jvm\/jre-1.8.0-openjdk\r\nPATH=$PATH:$JRE_HOME:$JAVA_HOME<\/pre>\n<p>Open the <code>~\/.bashrc<\/code> file and make sure that the following lines exist:<\/p>\n<pre>if [ -f \/etc\/bashrc ] ; then\r\n  . \/etc\/bashrc\r\nfi<\/pre>\n<p>Run the following command to activate the path settings immediately:<\/p>\n<pre>source \/etc\/bashrc<\/pre>\n<h2>Step 4: Install Apache Kafka<\/h2>\n<p>Create a new system user dedicated for the Kafka service using the following command:<\/p>\n<pre>useradd kafka -m<\/pre>\n<p>Set a password for the newly created user:<\/p>\n<pre>passwd kafka<\/pre>\n<p>Use a strong password and enter it twice. Then, run the following command on the server:<\/p>\n<pre>sudo usermod -aG wheel kafka<\/pre>\n<p>Log in as the newly created user with:<\/p>\n<pre>su kafka<\/pre>\n<p>Download the latest version of Apache Kafka available at\u00a0https:\/\/kafka.apache.org\/downloads and extract it in the home directory of the kafka user account:<\/p>\n<pre>cd ~\r\nwget http:\/\/apache.osuosl.org\/kafka\/2.1.0\/kafka_2.12-2.1.0.tgz\r\ntar -xvzf kafka_2.12-2.1.0.tgz\r\nmv kafka_2.12-2.1.0\/* .\r\nrmdir \/home\/kafka\/kafka_2.12-2.1.0<\/pre>\n<p>Apache Kafka uses ZooKeeper to store persistent cluster metadata, so we need to install ZooKeeper. The ZooKeeper files are included with Apache Kafka. ZooKeeper is running on port 2181 and it doesn&#8217;t require much maintenance. The ZooKeeper service is responsible for configuration management, leader detection, synchronization, etc.<br \/>\nCreate a ZooKeeper systemd unit file\u00a0so that we can run ZooKeeper as a service:<\/p>\n<pre>sudo vi \/lib\/systemd\/system\/zookeeper.service<\/pre>\n<pre>[Unit]\r\nRequires=network.target remote-fs.target\r\nAfter=network.target remote-fs.target\r\n\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\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Create a systemd unit file for Apache Kafka:<\/p>\n<pre>sudo vi \/etc\/systemd\/system\/kafka.service<\/pre>\n<p>Add the following lines:<\/p>\n<pre>[Unit]\r\nRequires=network.target remote-fs.target zookeeper.service\r\nAfter=network.target remote-fs.target zookeeper.service\r\n\r\n[Service]\r\nType=simple\r\nUser=kafka\r\nExecStart=\/home\/kafka\/bin\/kafka-server-start.sh \/home\/kafka\/config\/server.properties\r\nExecStop=\/home\/kafka\/bin\/kafka-server-stop.sh\r\nRestart=on-abnormal\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>Edit the <code>server.properties<\/code> file and add\/modify the following settings:<\/p>\n<pre>vi \/home\/kafka\/config\/server.properties<\/pre>\n<pre>listeners=PLAINTEXT:\/\/:9092\r\nlog.dirs=\/var\/log\/kafka-logs<\/pre>\n<p>After we make changes to a unit file, we should run the &#8216;<code>systemctl daemon-reload<\/code>&#8216; command for the changes to take effect:<\/p>\n<pre>systemctl daemon-reload<\/pre>\n<p>Create a new directory &#8216;kafka-logs&#8217; in the &#8216;<code>\/var\/log\/<\/code>&#8216; directory on your server:<\/p>\n<pre>sudo mkdir -p \/var\/log\/kafka-logs<\/pre>\n<pre>chown kafka:kafka -R \/var\/log\/kafka-logs<\/pre>\n<p>This can be useful for troubleshooting. Once that&#8217;s done, start the ZooKeeper and Apache Kafka services:<\/p>\n<pre>sudo systemctl start zookeeper.service\r\nsudo systemctl start kafka.service<\/pre>\n<p>Enable the ZooKeeper and Apache Kafka services to automatically start on server boot:<\/p>\n<pre>systemctl enable zookeeper.service<\/pre>\n<pre>systemctl enable kafka.service<\/pre>\n<p>In order to check if ZooKeeper and Kafka services are up and running, run the following commands on the VPS:<\/p>\n<pre>systemctl status zookeeper.service<\/pre>\n<p>We should receive an output similar to this:<\/p>\n<pre>zookeeper.service\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/zookeeper.service; disabled; vendor preset: disabled)\r\n   Active: active (running) since Fri 2019-01-25 12:42:42 CST; 16s ago\r\n Main PID: 11682 (java)\r\n   CGroup: \/system.slice\/zookeeper.service\r\n           \u2514\u250011682 java -Xmx512M -Xms512M -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.h...<\/pre>\n<pre>systemctl status kafka.service<\/pre>\n<p>The output of this command should be similar to this one:<\/p>\n<pre>kafka.service\r\n   Loaded: loaded (\/etc\/systemd\/system\/kafka.service; disabled; vendor preset: disabled)\r\n   Active: active (running) since Fri 2019-01-25 12:42:50 CST; 42s ago\r\n Main PID: 11991 (java)\r\n   CGroup: \/system.slice\/kafka.service\r\n           \u2514\u250011991 java -Xmx1G -Xms1G -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headl...<\/pre>\n<p>We can also use the\u00a0<code>netstat<\/code> command to check if Kafka and ZooKeeper services are listening on ports <span style=\"color: #ff0000;\">9092<\/span> and <span style=\"color: #ff0000;\">2181<\/span> respectively:<\/p>\n<pre>sudo netstat -tunlp | grep -e \\:9092 -e \\:2181\r\ntcp6       0      0 :::9092                 :::*                    LISTEN      11991\/java\r\ntcp6       0      0 :::2181                 :::*                    LISTEN      11682\/java<\/pre>\n<p>That is it. We successfully installed Apache Kafka.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1144\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/best-managed-support-for-apache-kafka-centos-server-vps-help-online.jpg\" alt=\"\" width=\"120\" height=\"195\" \/>Of course, you don\u2019t have to install and configure Apache Kafka on CentOS 7, if you use one of our\u00a0<a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Fully Managed CentOS Support<\/a> solutions, in which case you can simply ask our expert Linux admins to setup and configure Apache Kafka on CentOS 7 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong>.<\/span> If you liked this post on <strong>how to install Apache Kafka on a CentOS 7 VPS<\/strong>, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p><div id=\"linux-2163667744\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming platform. It&#8217;s designed to be scalable, responsive, and provide an excellent experience when dealing with real-time data feeds. It&#8217;s great at providing real time analytics and processing of data &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1142,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[67,148,17,147],"class_list":["post-1139","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-apache","tag-apache-kafka","tag-centos","tag-kafka"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Apache Kafka on CentOS 7 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\" \/>\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 CentOS 7 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-29T19:16:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Apache Kafka on CentOS 7\",\"datePublished\":\"2020-04-29T19:16:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\"},\"wordCount\":685,\"commentCount\":4,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg\",\"keywords\":[\"apache\",\"apache kafka\",\"centos\",\"kafka\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\",\"name\":\"How to Install Apache Kafka on CentOS 7 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg\",\"datePublished\":\"2020-04-29T19:16:12+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache Kafka on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Apache Kafka on CentOS 7 | LinuxHostSupport","description":"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming","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:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Apache Kafka on CentOS 7 | LinuxHostSupport","og_description":"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2020-04-29T19:16:12+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Apache Kafka on CentOS 7","datePublished":"2020-04-29T19:16:12+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/"},"wordCount":685,"commentCount":4,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg","keywords":["apache","apache kafka","centos","kafka"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/","name":"How to Install Apache Kafka on CentOS 7 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg","datePublished":"2020-04-29T19:16:12+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will show you how to install Apache Kafka on CentOS 7. Apache Kafka is an\u00a0open source messaging system and distributed streaming","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/04\/how-to-install-apache-kafka-on-centos7.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-apache-kafka-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache Kafka on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1139"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1139\/revisions"}],"predecessor-version":[{"id":1147,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1139\/revisions\/1147"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1142"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}