kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Wang <chen.apache.s...@gmail.com>
Subject Re: change retention for a topic on the fly does not work
Date Tue, 11 Nov 2014 17:59:25 GMT
For those who might need to do the same thing, the command is
bin/kafka-topics.sh --zookeeper localhost:2182 --alter --topic yourconfig
 --config retention.ms=172800000

On Mon, Nov 10, 2014 at 4:46 PM, Chen Wang <chen.apache.solr@gmail.com>
wrote:

> Hey guys,
> i am using kafka_2.9.2-0.8.1.1
>
>  bin/kafka-topics.sh --zookeeper localhost:2182 --alter --topic my_topic
>  --config log.retention.hours.per.topic=48
>
> It says:
> Error while executing topic command requirement failed: Unknown
> configuration "log.retention.hours.per.topic".
> java.lang.IllegalArgumentException: requirement failed: Unknown
> configuration "log.retention.hours.per.topic".
> at scala.Predef$.require(Predef.scala:214)
> at kafka.log.LogConfig$$anonfun$validateNames$1.apply(LogConfig.scala:138)
> at kafka.log.LogConfig$$anonfun$validateNames$1.apply(LogConfig.scala:137)
> at scala.collection.Iterator$class.foreach(Iterator.scala:772)
> at
> scala.collection.JavaConversions$JEnumerationWrapper.foreach(JavaConversions.scala:578)
> at kafka.log.LogConfig$.validateNames(LogConfig.scala:137)
> at kafka.log.LogConfig$.validate(LogConfig.scala:145)
>
> Any idea?
> Chen
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message