I have used:
./kafka-topics.sh --delete --topic unibs  --zookeeper 127.0.0.1:2181
It did work for me:

~/Downloads/kafka_2.11-0.9.0.1/bin$ ./kafka-topics.sh --list --zookeeper 
127.0.0.1:2181
unibs
~/Downloads/kafka_2.11-0.9.0.1/bin$ ./kafka-topics.sh --delete --topic unibs  
--zookeeper 127.0.0.1:2181
Topic unibs is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.

~/Downloads/kafka_2.11-0.9.0.1/bin$ ./kafka-topics.sh --list --zookeeper 
127.0.0.1:2181
~/Downloads/kafka_2.11-0.9.0.1/bin$


Did you set the delete.topic.enable to true in the broker file configuration?

BR

Eduardo Costa Alfaia
Ph.D. Student in Telecommunications Engineering
Università degli Studi di Brescia
Tel: +39 3209333018







On 5/11/16, 14:58, "Jaikiran Pai" <jai.forums2...@gmail.com> wrote:

>That's actually not the right way to delete topics (or for that matter 
>managing a Kafka instance). It can lead to odd/corrupt installation.
>
>-Jaikiran
>
>On Wednesday 11 May 2016 06:27 PM, Eduardo Costa Alfaia wrote:
>> Hi,
>> It’s better creating a script that delete the kafka folder where exist the 
>> kafka topic and after create it again if need.
>>
>> BR
>>
>>
>> Eduardo Costa Alfaia
>> Ph.D. Student in Telecommunications Engineering
>> Università degli Studi di Brescia
>> Tel: +39 3209333018
>>
>>
>>
>>
>>
>>
>>
>>
>> On 5/11/16, 09:48, "Snehalata Nagaje" <snehalata.nag...@harbingergroup.com> 
>> wrote:
>>
>>>
>>> Hi ,
>>>
>>> Can we delete certain topic in kafka?
>>>
>>> I have deleted using command
>>>
>>> ./kafka-topics.sh --delete --topic topic_billing --zookeeper localhost:2181
>>>
>>> It says topic marked as deletion, but it does not actually delete topic.
>>>
>>> Thanks,
>>> Snehalata
>>
>


-- 

Informativa sulla Privacy: http://www.unibs.it/node/8155

Reply via email to