{"id":19246,"date":"2021-12-27T04:54:31","date_gmt":"2021-12-26T21:54:31","guid":{"rendered":"https:\/\/huongdanjava.com\/?p=19246"},"modified":"2024-08-14T07:20:07","modified_gmt":"2024-08-14T00:20:07","slug":"working-with-apache-kafka-topic-using-cli","status":"publish","type":"post","link":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html","title":{"rendered":"Working with Apache Kafka Topic using CLI"},"content":{"rendered":"<p>After <a href=\"https:\/\/huongdanjava.com\/install-apache-kafka-on-macos.html\" target=\"_blank\" rel=\"noopener\">installing Apache Kafka<\/a>, you can use the Apache Kafka CLI tool to work with topics in the Apache Kafka server.<\/p>\n<h3>Create a new topic<\/h3>\n<p>We will use the Apache Kafka CLI&#8217;s kafka-topics.sh file to work with topics in the Apache Kafka server.<\/p>\n<p><strong>To create a new topic<\/strong>, you can use the command with the following syntax:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --create --topic &lt;topic_name&gt; --bootstrap-server &lt;kafka_server&gt; --partitions &lt;partition_number&gt; --replication-factor &lt;replication_number&gt;<\/pre>\n<p>In there:<\/p>\n<ul>\n<li>topic_name is the topic name that we need to create.<\/li>\n<li>kafka_server is the address of the Apache Kafka server with the format host:port.<\/li>\n<li>partition_number is the number of partitions we need to create.<\/li>\n<li>replication_number is the number of replications we want for each partition. The value of this parameter will depend on how many Apache Kafka servers we have.<\/li>\n<\/ul>\n<p>For example, I run the following command:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --create --topic huongdanjava --bootstrap-server localhost:9092 --partitions 2 --replication-factor 1<\/pre>\n<p>The result will be as follows:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19248 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/12\/working-with-apache-kafka-topic-using-cli-1.png\" alt=\"\" width=\"700\" height=\"78\" \/><\/p>\n<p><strong>To check the topic we just created above in the Apache Kafka server<\/strong>, you can run the following command:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --describe --topic &lt;topic_name&gt; --bootstrap-server &lt;kafka_server&gt;<\/pre>\n<p>The meaning of the parameters as I mentioned above.<\/p>\n<p>My example is as follows:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --describe --topic huongdanjava --bootstrap-server localhost:9092<\/pre>\n<p>Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19249 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/12\/working-with-apache-kafka-topic-using-cli-2.png\" alt=\"\" width=\"700\" height=\"170\" \/><\/p>\n<p>As you can see, my topic huongdanjava has 2 partitions and the number of ReplicationFactor is 1 as the command I ran above.<\/p>\n<h3>View all topics<\/h3>\n<p><strong>To check all topics contained in an Apache Kafka server<\/strong>, you can run the following command:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --list --bootstrap-server &lt;kafka_server&gt;<\/pre>\n<p>An example is as follows:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --list --bootstrap-server localhost:9092<\/pre>\n<p>You will see the topic we just created above as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19250 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/12\/working-with-apache-kafka-topic-using-cli-3.png\" alt=\"\" width=\"700\" height=\"63\" \/><\/p>\n<h3>View all messages in a topic<\/h3>\n<p>To see all messages in an Apache Kafka topic, you can use the following command:<\/p>\n<pre class=\"lang:java decode:true \">kafka-console-consumer.sh --bootstrap-server &lt;kafka_server&gt; --topic &lt;topic_name&gt; --from-beginning<\/pre>\n<p>For example:<\/p>\n<pre class=\"lang:java decode:true \">kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic huongdanjava --from-beginning<\/pre>\n<p>The result when I run this command is as follows:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-23131 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/12\/working-with-apache-kafka-topic-using-cli-5.png\" alt=\"\" width=\"700\" height=\"73\" \/>Currently, in my example topic, there are no messages but if a new message arrives, it will be displayed here!<\/p>\n<h3>Delete a topic<\/h3>\n<p><strong>To delete a topic in the Apache Kafka server<\/strong>, we will use the following command:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --delete --topic &lt;topic_name&gt; --bootstrap-server &lt;kafka_server&gt;<\/pre>\n<p>My example is as follows:<\/p>\n<pre class=\"lang:java decode:true \">kafka-topics.sh --delete --topic huongdanjava --bootstrap-server localhost:9092<\/pre>\n<p>Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19251 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/12\/working-with-apache-kafka-topic-using-cli-4.png\" alt=\"\" width=\"700\" height=\"60\" \/><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;19246&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Working with Apache Kafka Topic using CLI&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\"><\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>After installing Apache Kafka, you can use the Apache Kafka CLI tool to work with topics in the Apache Kafka server. Create a new topic We will use the Apache Kafka CLI&#8217;s kafka-topics.sh file to work with topics in the Apache Kafka server. To create&hellip; <a href=\"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":18814,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2146],"tags":[],"class_list":["post-19246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-kafka-en","clearfix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Working with Apache Kafka Topic using CLI - Huong Dan Java<\/title>\n<meta name=\"description\" content=\"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Working with Apache Kafka Topic using CLI - Huong Dan Java\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html\" \/>\n<meta property=\"og:site_name\" content=\"Huong Dan Java\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-26T21:54:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-14T00:20:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"390\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Khanh Nguyen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/KhanhNguyenJ\" \/>\n<meta name=\"twitter:site\" content=\"@KhanhNguyenJ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khanh Nguyen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html\"},\"author\":{\"name\":\"Khanh Nguyen\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"headline\":\"Working with Apache Kafka Topic using CLI\",\"datePublished\":\"2021-12-26T21:54:31+00:00\",\"dateModified\":\"2024-08-14T00:20:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html\"},\"wordCount\":311,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/kafka.jpeg\",\"articleSection\":[\"Apache Kafka\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html\",\"name\":\"Working with Apache Kafka Topic using CLI - Huong Dan Java\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/kafka.jpeg\",\"datePublished\":\"2021-12-26T21:54:31+00:00\",\"dateModified\":\"2024-08-14T00:20:07+00:00\",\"description\":\"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#primaryimage\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/kafka.jpeg\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/kafka.jpeg\",\"width\":600,\"height\":390},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-apache-kafka-topic-using-cli.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/huongdanjava.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with Apache Kafka Topic using CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/\",\"name\":\"Huong Dan Java\",\"description\":\"Java development tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/huongdanjava.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\",\"name\":\"Khanh Nguyen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"width\":1267,\"height\":1517,\"caption\":\"Khanh Nguyen\"},\"logo\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\"},\"description\":\"I love Java and everything related to Java.\",\"sameAs\":[\"https:\\\/\\\/huongdanjava.com\",\"https:\\\/\\\/www.facebook.com\\\/nhkhanh2406\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/KhanhNguyenJ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Working with Apache Kafka Topic using CLI - Huong Dan Java","description":"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.","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:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html","og_locale":"en_US","og_type":"article","og_title":"Working with Apache Kafka Topic using CLI - Huong Dan Java","og_description":"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.","og_url":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html","og_site_name":"Huong Dan Java","article_publisher":"https:\/\/www.facebook.com\/nhkhanh2406","article_author":"https:\/\/www.facebook.com\/nhkhanh2406","article_published_time":"2021-12-26T21:54:31+00:00","article_modified_time":"2024-08-14T00:20:07+00:00","og_image":[{"width":600,"height":390,"url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg","type":"image\/jpeg"}],"author":"Khanh Nguyen","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/KhanhNguyenJ","twitter_site":"@KhanhNguyenJ","twitter_misc":{"Written by":"Khanh Nguyen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#article","isPartOf":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html"},"author":{"name":"Khanh Nguyen","@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"headline":"Working with Apache Kafka Topic using CLI","datePublished":"2021-12-26T21:54:31+00:00","dateModified":"2024-08-14T00:20:07+00:00","mainEntityOfPage":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html"},"wordCount":311,"commentCount":0,"publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"image":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg","articleSection":["Apache Kafka"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html","url":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html","name":"Working with Apache Kafka Topic using CLI - Huong Dan Java","isPartOf":{"@id":"https:\/\/huongdanjava.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#primaryimage"},"image":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg","datePublished":"2021-12-26T21:54:31+00:00","dateModified":"2024-08-14T00:20:07+00:00","description":"In this tutorial, I guide you all on how to work with Apache Kafka Topic using CLI.","breadcrumb":{"@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#primaryimage","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/kafka.jpeg","width":600,"height":390},{"@type":"BreadcrumbList","@id":"https:\/\/huongdanjava.com\/working-with-apache-kafka-topic-using-cli.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/huongdanjava.com\/"},{"@type":"ListItem","position":2,"name":"Working with Apache Kafka Topic using CLI"}]},{"@type":"WebSite","@id":"https:\/\/huongdanjava.com\/#website","url":"https:\/\/huongdanjava.com\/","name":"Huong Dan Java","description":"Java development tutorials","publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/huongdanjava.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d","name":"Khanh Nguyen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","width":1267,"height":1517,"caption":"Khanh Nguyen"},"logo":{"@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg"},"description":"I love Java and everything related to Java.","sameAs":["https:\/\/huongdanjava.com","https:\/\/www.facebook.com\/nhkhanh2406","https:\/\/x.com\/https:\/\/twitter.com\/KhanhNguyenJ"]}]}},"_links":{"self":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/19246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/comments?post=19246"}],"version-history":[{"count":5,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/19246\/revisions"}],"predecessor-version":[{"id":23132,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/19246\/revisions\/23132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media\/18814"}],"wp:attachment":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media?parent=19246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/categories?post=19246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/tags?post=19246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}