Skip to main content
sakitha
Bronze ⭐️⭐️⭐️
Jun 16, 2021 12:29 PM UTC
Solved

MirrorMaker wont start due to java.lang.RuntimeException

 

[mirrormaker-thread-0] Mirror maker thread failure due to 
java.lang.RuntimeException: { is an invalid regex.
at kafka.utils.TopicFilter.<init>(TopicFilter.scala:38)
at kafka.utils.Whitelist.<init>(TopicFilter.scala:46)
at kafka.tools.MirrorMaker$ConsumerWrapper$$anonfun$init$2.apply(MirrorMaker.scala:316)
at kafka.tools.MirrorMaker$ConsumerWrapper$$anonfun$init$2.apply(MirrorMaker.scala:314)
at scala.Option.foreach(Option.scala:257)
at kafka.tools.MirrorMaker$ConsumerWrapper.init(MirrorMaker.scala:314)
at kafka.tools.MirrorMaker$MirrorMakerThread.run(MirrorMaker.scala:215)

 

please help! 

aakulov
aakulovAnswer
Platinum ⭐️
Jun 16, 2021 5:13 PM UTC

Hi @sakitha ,

 

What version of CDH/HDP/CDP are you using? If you are using Cloudera Manager (CM), please check the MirrorMaker parameter values for presence of any "}" characters. The error, as shown, indicates there is something wrong with Whitelist parameter or the like.

 

 

Regards,

Alex Akulov

2 replies

aakulov
Platinum ⭐️
aakulovAnswer
Platinum ⭐️
Jun 16, 2021 5:13 PM UTC

Hi @sakitha ,

 

What version of CDH/HDP/CDP are you using? If you are using Cloudera Manager (CM), please check the MirrorMaker parameter values for presence of any "}" characters. The error, as shown, indicates there is something wrong with Whitelist parameter or the like.

 

 

Regards,

Alex Akulov

Translate
kingpin
Gold ⭐️
Gold ⭐️
Jun 21, 2021 8:36 AM UTC

Hi @sakitha 

 

Seems to be a known issue. 

Is the topic whitelist is set to " * " ?  Can you please try with dot  - " .*" 

 

Let us know if that works for you. 

 

Regards,

 

~ If the above answers your questions. Please give a thumbs up and mark the post as accept as solution.

Translate