Correction, the exception seems to have moved between kafka version 0.10.0.1 and 0.10.1.1
Here's the patch that changed both the kafka version and the import statement for TopicExistsException: https://github.com/apache/samza/commit/9db47b86120f80b127d2bca857b6a1cd5578a6d4#diff-2beed65293202568c54b61109564ccd1R29 So, you'll want to be using kafka 0.10.1.1. On Mon, Aug 14, 2017 at 2:00 PM, Jacob Maes <jacob.m...@gmail.com> wrote: > Hey Jeremiah, > > It looks like the TopicExistsException should be handled by the system > admin and not rethrown: > https://github.com/apache/samza/blob/06702af8fda1d016ae55461c404b55 > b84b20ffd2/samza-kafka/src/main/scala/org/apache/samza/ > system/kafka/KafkaSystemAdmin.scala#L442 > > I have a theory what's happening here. I think the TopicExistsException > was moved from the org.apache.kafka.common package in kafka 0.8.2 > http://apache.osuosl.org/kafka/0.8.2.0/scaladoc/kafka/ > common/TopicExistsException.html > > to the org.apache.kafka.common.errors package in kafka 0.10 > https://kafka.apache.org/0102/javadoc/org/apache/kafka/common/errors/ > TopicExistsException.html > > And Samza 0.13 expects the latter. > > Can you double check that your job is actually using kafka 0.10.1.1, > perhaps by inspecting the jars? > > -Jake > > On Mon, Aug 14, 2017 at 11:55 AM, Jeremiah Adams < > jad...@helixeducation.com> wrote: > >> I am having an issue with topic creation after updating dependencies. I >> bumped samza dependencies from scala 2.10 v 0.10.1 to scala 2.11 0.13.0 >> and org.apache.kafka dependency from kafka_2.10 0.8.1 to kafka_2.11 >> 0.10.1.1. >> I am seeing an error that the topic already exists and the job gets stuck >> in a loop with logs like below. The job will not move into 'accepted' state >> in yarn and never consumes the topics it should be consuming. The zk, yarn >> and kafka nodes are newly deployed. I'm at a loss, any ideas? >> >> >> [10.201.9.105] out: 17:18:49.347 [main] DEBUG >> org.apache.samza.system.kafka.KafkaSystemAdmin - Exception detail: >> [10.201.9.105] out: kafka.common.TopicExistsException: Topic >> "__samza_coordinator_inquiry-submission_1" already exists. >> [10.201.9.105] out: at kafka.admin.AdminUtils$.create >> OrUpdateTopicPartitionAssignmentPathInZK(AdminUtils.scala:420) >> [10.201.9.105] out: at kafka.admin.AdminUtils$.create >> Topic(AdminUtils.scala:404) >> [10.201.9.105] out: at org.apache.samza.system.kafka. >> KafkaSystemAdmin$$anonfun$createStream$1.apply(KafkaSystemAd >> min.scala:425) >> [10.201.9.105] out: at org.apache.samza.system.kafka. >> KafkaSystemAdmin$$anonfun$createStream$1.apply(KafkaSystemAd >> min.scala:422) >> [10.201.9.105] out: at org.apache.samza.util.Exponent >> ialSleepStrategy.run(ExponentialSleepStrategy.scala:82) >> [10.201.9.105] out: at org.apache.samza.system.kafka. >> KafkaSystemAdmin.createStream(KafkaSystemAdmin.scala:421) >> [10.201.9.105] out: at org.apache.samza.system.kafka. >> KafkaSystemAdmin.createCoordinatorStream(KafkaSystemAdmin.scala:336) >> [10.201.9.105] out: at org.apache.samza.job.JobRunner >> .run(JobRunner.scala:88) >> [10.201.9.105] out: at org.apache.samza.job.JobRunner >> $.doOperation(JobRunner.scala:52) >> [10.201.9.105] out: at org.apache.samza.job.JobRunner >> $.main(JobRunner.scala:47) >> [10.201.9.105] out: at org.apache.samza.job.JobRunner >> .main(JobRunner.scala) >> [10.201.9.105] out: 17:18:49.347 [main-SendThread(ip-10-201-9-2 >> 43.us-west-2.compute.internal:2181)] DEBUG org.apache.zookeeper.ClientCnxn >> - An exception was thrown while closing send thread for session >> 0x25de16b1f500013 : Unable to read additional data from server sessionid >> 0x25de16b1f500013, likely server has closed socket >> [10.201.9.105] out: 17:18:49.349 [main-EventThread] INFO >> org.apache.zookeeper.ClientCnxn - EventThread shut down? >> >> >> >> Jeremiah Adams >> Software Engineer >> www.helixeducation.com<http://www.helixeducation.com/> >> Blog<http://www.helixeducation.com/blog/> | Twitter< >> https://twitter.com/HelixEducation> | Facebook<https://www.facebook. >> com/HelixEducation> | LinkedIn<http://www.linkedin.com/company/3609946> >> > >