我在aws emr实例上使用samza,而且我总是有例外情况,有人可以帮助我吗?:
org.apache.samza.SamzaException:无法发送消息。例外: java.lang.IllegalStateException:生成器关闭后无法发送。 在org.apache.samza.system.kafka.KafkaSystemProducer $$ anonfun $ send $ 5.apply(KafkaSystemProducer.scala:120) 在org.apache.samza.system.kafka.KafkaSystemProducer $$ anonfun $ send $ 5.apply(KafkaSystemProducer.scala:111) 在org.apache.samza.util.ExponentialSleepStrategy.run(ExponentialSleepStrategy.scala:81) 在org.apache.samza.system.kafka.KafkaSystemProducer.send(KafkaSystemProducer.scala:86) 在org.apache.samza.system.SystemProducers.send(SystemProducers.scala:87) 在org.apache.samza.task.TaskInstanceCollector.send(TaskInstanceCollector.scala:61) 在org.apache.samza.storage.kv.LoggedStore.putAll(LoggedStore.scala:72) at org.apache.samza.storage.kv.SerializedKeyValueStore.putAll(SerializedKeyValueStore.scala:57) 在org.apache.samza.storage.kv.CachedStore.flush(CachedStore.scala:166) 在org.apache.samza.storage.kv.NullSafeKeyValueStore.flush(NullSafeKeyValueStore.scala:69) 在org.apache.samza.storage.kv.KeyValueStorageEngine.flush(KeyValueStorageEngine.scala:113) 在org.apache.samza.storage.kv.KeyValueStorageEngine.close(KeyValueStorageEngine.scala:125) 在org.apache.samza.storage.kv.KeyValueStorageEngine.stop(KeyValueStorageEngine.scala:119) 在org.apache.samza.storage.TaskStorageManager $$ anonfun $ stop $ 2.apply(TaskStorageManager.scala:147) 在org.apache.samza.storage.TaskStorageManager $$ anonfun $ stop $ 2.apply(TaskStorageManager.scala:147) 在scala.collection.Iterator $ class.foreach(Iterator.scala:727) 在scala.collection.AbstractIterator.foreach(Iterator.scala:1157) 在scala.collection.MapLike $ DefaultValuesIterable.foreach(MapLike.scala:206) 在org.apache.samza.storage.TaskStorageManager.stop(TaskStorageManager.scala:147) 在org.apache.samza.container.TaskInstance.shutdownStores(TaskInstance.scala:185) 在org.apache.samza.container.SamzaContainer $$ anonfun $ shutdownStores $ 2.apply(SamzaContainer.scala:650) 在org.apache.samza.container.SamzaContainer $$ anonfun $ shutdownStores $ 2.apply(SamzaContainer.scala:650) 在scala.collection.Iterator $ class.foreach(Iterator.scala:727) 在scala.collection.AbstractIterator.foreach(Iterator.scala:1157) 在scala.collection.MapLike $ DefaultValuesIterable.foreach(MapLike.scala:206) 在org.apache.samza.container.SamzaContainer.shutdownStores(SamzaContainer.scala:650) 在org.apache.samza.container.SamzaContainer.run(SamzaContainer.scala:560) 在org.apache.samza.container.SamzaContainer $ .safeMain(SamzaContainer.scala:93) 在org.apache.samza.container.SamzaContainer $ .main(SamzaContainer.scala:67) 在org.apache.samza.container.SamzaContainer.main(SamzaContainer.scala)
答案 0 :(得分:0)
我错过了错误文件中的真实异常。