forked from docs/doc-exports
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>
50 lines
5.9 KiB
HTML
50 lines
5.9 KiB
HTML
<a name="mrs_01_24136"></a><a name="mrs_01_24136"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Topic on Kafka UI</h1>
|
|
<div id="body32001227"><div class="section" id="mrs_01_24136__en-us_topic_0000001219231297_s9f93d0a70cdc4575b48c96902a562dfe"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24136__en-us_topic_0000001219231297_p7684161264218">Create a topic on Kafka UI.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24136__en-us_topic_0000001219231297_section878113401693"><h4 class="sectiontitle">Creating a Topic</h4><ol id="mrs_01_24136__en-us_topic_0000001219231297_ol10782141514100"><li id="mrs_01_24136__en-us_topic_0000001219231297_li1510121220420"><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_24136__en-us_topic_0000001219231297_li1038520299438"><span>Click <strong id="mrs_01_24136__en-us_topic_0000001219231297_b2212186152613">Create Topic</strong>. On the displayed page, configure parameters by referring to <a href="#mrs_01_24136__en-us_topic_0000001219231297_table134890201518">Table 1</a> and click <strong id="mrs_01_24136__en-us_topic_0000001219231297_b1155414410263">Create</strong>.</span><p>
|
|
<div class="tablenoborder"><a name="mrs_01_24136__en-us_topic_0000001219231297_table134890201518"></a><a name="en-us_topic_0000001219231297_table134890201518"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24136__en-us_topic_0000001219231297_table134890201518" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Topic information</caption><thead align="left"><tr id="mrs_01_24136__en-us_topic_0000001219231297_row1491004152"><th align="left" class="cellrowborder" valign="top" width="26.52%" id="mcps1.3.2.2.2.2.1.2.4.1.1"><p id="mrs_01_24136__en-us_topic_0000001219231297_p9491904151">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.4%" id="mcps1.3.2.2.2.2.1.2.4.1.2"><p id="mrs_01_24136__en-us_topic_0000001219231297_p14917016153">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.08%" id="mcps1.3.2.2.2.2.1.2.4.1.3"><p id="mrs_01_24136__en-us_topic_0000001219231297_p17496071518">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24136__en-us_topic_0000001219231297_row8491603157"><td class="cellrowborder" valign="top" width="26.52%" headers="mcps1.3.2.2.2.2.1.2.4.1.1 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p2049120111519">Topic</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.4%" headers="mcps1.3.2.2.2.2.1.2.4.1.2 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p84916071517">Topic name, which can contain a maximum of 249 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.08%" headers="mcps1.3.2.2.2.2.1.2.4.1.3 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p1149110141519">Example: <strong id="mrs_01_24136__en-us_topic_0000001219231297_b1879313156293">kafka_ui</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24136__en-us_topic_0000001219231297_row1749307153"><td class="cellrowborder" valign="top" width="26.52%" headers="mcps1.3.2.2.2.2.1.2.4.1.1 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p174980131510">Partitions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.4%" headers="mcps1.3.2.2.2.2.1.2.4.1.2 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p17491408153">Number of topic partitions. The value must be greater than or equal to 1. The default value is <strong id="mrs_01_24136__en-us_topic_0000001219231297_b746073312297">3</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.08%" headers="mcps1.3.2.2.2.2.1.2.4.1.3 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p34980101513">-</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24136__en-us_topic_0000001219231297_row174950131510"><td class="cellrowborder" valign="top" width="26.52%" headers="mcps1.3.2.2.2.2.1.2.4.1.1 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p13494015152">Replication Factor</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.4%" headers="mcps1.3.2.2.2.2.1.2.4.1.2 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p137663441235">Replication factor of a topic. The value ranges from 1 to <em id="mrs_01_24136__en-us_topic_0000001219231297_i205429308">N</em>. <em id="mrs_01_24136__en-us_topic_0000001219231297_i77517523016">N</em> indicates the number of brokers in the current cluster. The default value is <strong id="mrs_01_24136__en-us_topic_0000001219231297_b1266261713309">2</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.08%" headers="mcps1.3.2.2.2.2.1.2.4.1.3 "><p id="mrs_01_24136__en-us_topic_0000001219231297_p115020191513">-</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="mrs_01_24136__en-us_topic_0000001219231297_note1819641255"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_24136__en-us_topic_0000001219231297_ul169204093810"><li id="mrs_01_24136__en-us_topic_0000001219231297_li9934015382">You can click <strong id="mrs_01_24136__en-us_topic_0000001219231297_b19651102915308">Advanced Options</strong> to set advanced topic parameters based on service requirements. Generally, retain the default values.</li><li id="mrs_01_24136__en-us_topic_0000001219231297_li891401388">In a cluster in security mode, the user who creates a topic must belong to the <span class="parmname" id="mrs_01_24136__en-us_topic_0000001219231297_parmname11685131415388"><b>kafkaadmin</b></span> user group. Otherwise, the topic cannot be created due to authentication failure.</li><li id="mrs_01_24136__en-us_topic_0000001219231297_li5449162215275">In a cluster in non-security mode, no authentication is required for creating a topic. That is, any user can create a topic.</li></ul>
|
|
</div></div>
|
|
</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>
|
|
|