Yang, Tong 6182f91ba8 MRS component operation guide_normal 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>
2022-12-09 14:55:21 +00:00

17 lines
2.4 KiB
HTML

<a name="mrs_01_1769"></a><a name="mrs_01_1769"></a>
<h1 class="topictitle1">How Do I Solve the Problem that Kafka Topics Cannot Be Deleted?</h1>
<div id="body1596098831041"><div class="section" id="mrs_01_1769__sd98faa49197a4670b7c318d20fb2c9c9"><h4 class="sectiontitle">Question</h4><p id="mrs_01_1769__a3ec04e6d68114b83aac25d69142b5f89">How do I delete a Kafka topic if it fails to be deleted?</p>
</div>
<div class="section" id="mrs_01_1769__sa5c1031b10894654868eca4d65a77879"><h4 class="sectiontitle">Answer</h4><ul id="mrs_01_1769__udeeaf07a01f34aae8d004a790ab8fbbc"><li id="mrs_01_1769__lba268b233d7f43b8ad695be8b9213b44">Possible cause 1: The <span class="parmname" id="mrs_01_1769__p354b9e189368433dbd453f5415291116"><b>delete.topic.enable</b></span> configuration item is not set to <span class="parmvalue" id="mrs_01_1769__p0a7f979d7c01485fb0bdc3805aa8d8b5"><b>true</b></span>. The deletion can be performed only when the configuration item is set to <span class="parmvalue" id="mrs_01_1769__p716b148c3889478c8d237b4021f4e9fb"><b>true</b></span>.</li><li id="mrs_01_1769__l413dfe1985894accacac27cf60cd5f10">Possible cause 2: The <span class="parmname" id="mrs_01_1769__p3f4e55f77a1641ffb3ee24616f168b4d"><b>auto.create.topics.enable</b></span> configuration parameter is set to <span class="parmvalue" id="mrs_01_1769__pbf4fed81f6124b338d48629c2e1c1cb2"><b>true</b></span>, which is used by other applications and is always running in the background.</li></ul>
<p id="mrs_01_1769__en-us_topic_0116216665_p198476210520">Solution:</p>
<ul id="mrs_01_1769__ue8c6b06edcd24c27bc472f1362db597f"><li id="mrs_01_1769__l6b81a9115a2d41a6a2095d24ff8a0392">For cause 1: Set <span class="parmname" id="mrs_01_1769__p43b6ba01efaf4e909009b60ad40cdc52"><b>delete.topic.enable</b></span> to <span class="parmvalue" id="mrs_01_1769__p3b9ea6ef716944ccbedd9a3498c3970c"><b>true</b></span> on the configuration page.</li><li id="mrs_01_1769__l4179392d79d34bb0ba15c7521a952590">For cause 2: Stop the application that uses the topic in the background, or set <span class="parmname" id="mrs_01_1769__pc5fa52ec8d5149df90ad1b158bf9b3ff"><b>auto.create.topics.enable</b></span> to <span class="parmvalue" id="mrs_01_1769__p5c57bdd011744c59a102812e3b567fbe"><b>false</b></span> (restart the Kafka service), and then delete the topic.</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1768.html">Common Issues About Kafka</a></div>
</div>
</div>