Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

35 lines
11 KiB
HTML

<a name="mrs_01_24138"></a><a name="mrs_01_24138"></a>
<h1 class="topictitle1">Managing Topics on Kafka UI</h1>
<div id="body32001227"><div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_s9f93d0a70cdc4575b48c96902a562dfe"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24138__en-us_topic_0000001173789854_p7684161264218">On Kafka UI, you can view topic details, modify topic configurations, add topic partitions, delete topics, and view the number of data records produced in different time segments in real time.</p>
<div class="note" id="mrs_01_24138__en-us_topic_0000001173789854_note13607141619489"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_24138__en-us_topic_0000001173789854_ul1014152324812"><li id="mrs_01_24138__en-us_topic_0000001173789854_li17141122334812">In security mode, Kafka UI does not authenticate the operation of viewing topic details. That is, any user can query topic information. To modify topic configurations, add topic partitions, or delete topics, ensure that the Kafka UI login user belongs to the <span class="parmname" id="mrs_01_24138__en-us_topic_0000001173789854_parmname0142122334813"><b>kafkaadmin</b></span> user group or grant the corresponding operation permissions to the user. Otherwise, the authentication fails.</li><li id="mrs_01_24138__en-us_topic_0000001173789854_li11421232489">In non-security mode, Kafka UI does not authenticate any operation.</li></ul>
</div></div>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section1746418521537"><h4 class="sectiontitle">Viewing Topic Details</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol10782141514100"><li id="mrs_01_24138__en-us_topic_0000001173789854_li17782181511106"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li154908592237"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b5613140105020">Topics</strong>. The topic management page is displayed.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li63513497107"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b16420151735010">Topic List</strong> area, you can view the names, status, number of partitions, creation time, and number of replicas of topics created in the current cluster.</span><p><p id="mrs_01_24138__en-us_topic_0000001173789854_p116291126147"><span><img id="mrs_01_24138__en-us_topic_0000001173789854_image38083620511" src="en-us_image_0000001296060084.png"></span></p>
</p></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li133371023121614"><span>Click a topic name to view details about the topic and partition.</span><p><p id="mrs_01_24138__en-us_topic_0000001173789854_p16828932181613"><span><img id="mrs_01_24138__en-us_topic_0000001173789854_image25951022393" src="en-us_image_0000001349059925.png"></span></p>
</p></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li173573130197"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b1159125111524">Producer Message</strong> area, you can select <strong id="mrs_01_24138__en-us_topic_0000001173789854_b735215539522">Day</strong>, <strong id="mrs_01_24138__en-us_topic_0000001173789854_b104075535216">Week</strong>, or <strong id="mrs_01_24138__en-us_topic_0000001173789854_b82041758145220">Month</strong> based on service requirements to view the number of data records produced in the topic.</span><p><p id="mrs_01_24138__en-us_topic_0000001173789854_p1479410287210"><span><img id="mrs_01_24138__en-us_topic_0000001173789854_image265318532213" src="en-us_image_0000001296060080.png"></span></p>
</p></li></ol>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section1046945219530"><h4 class="sectiontitle">Modifying the Topic Configuration</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol693473212221"><li id="mrs_01_24138__en-us_topic_0000001173789854_li10798103632218"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li38561816243"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b197916437532">Topics</strong>. The topic management page is displayed.</span></li></ol><ol start="3" id="mrs_01_24138__en-us_topic_0000001173789854_ol14500192833618"><li id="mrs_01_24138__en-us_topic_0000001173789854_li62711853122713"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b2798105025319">Operation</strong> column of the item to be modified, choose <strong id="mrs_01_24138__en-us_topic_0000001173789854_b171501211545">Action</strong> &gt; <strong id="mrs_01_24138__en-us_topic_0000001173789854_b9631220548">Config</strong>. On the displayed page, change the values of <strong id="mrs_01_24138__en-us_topic_0000001173789854_b6244118155414">Key</strong> and <strong id="mrs_01_24138__en-us_topic_0000001173789854_b15461152019543">Value</strong> of the topic. To add multiple items, click <span><img id="mrs_01_24138__en-us_topic_0000001173789854_image15272853142714" src="en-us_image_0000001348740109.png"></span>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li8522134012367"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b8473100155613">OK</strong>.</span></li></ol>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section1897053010111"><h4 class="sectiontitle">Searching for a Topic</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol15610618716"><li id="mrs_01_24138__en-us_topic_0000001173789854_li561492712311"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li2061462715315"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b71945111566">Topics</strong>. The topic management page is displayed.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li7610171814118"><span>In the upper right corner of the page, enter a topic name to search for the topic.</span></li></ol>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section13215352113213"><h4 class="sectiontitle">Adding a Partition</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol1173175619333"><li id="mrs_01_24138__en-us_topic_0000001173789854_li1642115811332"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li124211589331"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b066918504565">Topics</strong>. The topic management page is displayed.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li121777216349"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b1462485712568">Operation</strong> column of the item to be modified, choose <strong id="mrs_01_24138__en-us_topic_0000001173789854_b2074312055711">Action</strong> &gt; <strong id="mrs_01_24138__en-us_topic_0000001173789854_b1390622115711">Alter</strong>. On the displayed page, modify the topic partition.</span><p><div class="note" id="mrs_01_24138__en-us_topic_0000001173789854_note76413213352"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24138__en-us_topic_0000001173789854_p86512115355">Currently, you can only add partitions to a cluster. That is, the number of partitions after modification must be greater than the number of original partitions.</p>
</div></div>
</p></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li1217712115347"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b078951165818">OK</strong>.</span></li></ol>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section78816534119"><h4 class="sectiontitle">Deleting a Topic</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol588017542373"><li id="mrs_01_24138__en-us_topic_0000001173789854_li12880195433712"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li388155413714"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b10235435584">Topics</strong>. The topic management page is displayed.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li188135463717"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b15916194819588">Operation</strong> column of the item to be modified, choose <strong id="mrs_01_24138__en-us_topic_0000001173789854_b18201653175819">Action</strong> &gt; <strong id="mrs_01_24138__en-us_topic_0000001173789854_b1366918550583">Delete</strong>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li588115412378"><span>In the confirmation dialog box that is displayed, click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b1714817215912">OK</strong>.</span><p><div class="note" id="mrs_01_24138__en-us_topic_0000001173789854_note432001311566"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24138__en-us_topic_0000001173789854_p1532041316562">The default built-in topics cannot be deleted.</p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="mrs_01_24138__en-us_topic_0000001173789854_section040151511402"><h4 class="sectiontitle">Viewing the Number of Data Records Produced</h4><ol id="mrs_01_24138__en-us_topic_0000001173789854_ol66031441184319"><li id="mrs_01_24138__en-us_topic_0000001173789854_li76031341144312"><span>Log in to Kafka UI. For details, see <a href="mrs_01_24134.html">Accessing Kafka UI</a>.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li1160384164310"><span>Click <strong id="mrs_01_24138__en-us_topic_0000001173789854_b292711297591">Topics</strong>. The topic management page is displayed.</span></li><li id="mrs_01_24138__en-us_topic_0000001173789854_li154471257154410"><span>In the <strong id="mrs_01_24138__en-us_topic_0000001173789854_b19548173535919">Producer Message</strong> area, you can select <strong id="mrs_01_24138__en-us_topic_0000001173789854_b163237419591">Day</strong>, <strong id="mrs_01_24138__en-us_topic_0000001173789854_b11715194314593">Week</strong>, or <strong id="mrs_01_24138__en-us_topic_0000001173789854_b531684618592">Month</strong> to view the number of data records produced in different time segments in the current cluster.</span><p><p id="mrs_01_24138__en-us_topic_0000001173789854_p138861445154517"><span><img id="mrs_01_24138__en-us_topic_0000001173789854_image10163459185819" src="en-us_image_0000001349059929.png"></span></p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24130.html">Using Kafka UI</a></div>
</div>
</div>