Open wuzhuang5-zz opened 6 years ago
Are you using the example like it is including the docker-compose file for the Kafka server?
On Fri, Aug 24, 2018, 11:55 John Wu notifications@github.com wrote:
can you help me to sove this problem . thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marinkobabic/axon-kafka-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ADHSOJBkGWbwRK6r-sjzld787redWz6eks5uT82OgaJpZM4WLEv8 .
I didn't use docker. I used Kafka in this machine.
I'll try.
What is the actual issue? Producer does not work? Consumer does not work? Please set the logging level to debug and send post the log of the application here.
On Sun, Aug 26, 2018, 11:12 John Wu notifications@github.com wrote:
I didn't use docker. I used Kafka in this machine.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/marinkobabic/axon-kafka-example/issues/2#issuecomment-416024794, or mute the thread https://github.com/notifications/unsubscribe-auth/ADHSOJJ_W9OdHcNue7XhJBhoGZq8lZQPks5uUmZkgaJpZM4WLEv8 .
Where: Build file '/Users/wz/IdeaProjects/axon-kafka-example/producer/build.gradle' line: 1
What went wrong: A problem occurred evaluating root project 'producer'.
Plugin with id 'com.palantir.docker' not found.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 0s
What social software do you use, can I add some questions to you? On axon framework
thanks very much
2018-08-26 19:59:59.201 INFO 2127 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2018-08-26 19:59:59.210 ERROR 2127 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:803) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:784) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at com.mykafka.producer.ProducerApplication.main(ProducerApplication.java:23) [classes/:na]
Caused by: org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.
2018-08-26 19:59:59.211 INFO 2127 --- [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7fa98a66: startup date [Sun Aug 26 19:59:22 CST 2018]; root of context hierarchy 2018-08-26 19:59:59.212 INFO 2127 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2018-08-26 19:59:59.213 INFO 2127 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase -1073741824 2018-08-26 19:59:59.213 INFO 2127 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase -2147482648 2018-08-26 19:59:59.215 INFO 2127 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
oh man The project worked. Thank you.
i want to run it in one applicaiton.yml `axon: kafka: producer:defaulttopic: mydefaulttopic producer: retries: 5 bootstrapservers:
You would like to combine the two applications into one?
On Sun, Aug 26, 2018, 14:16 John Wu notifications@github.com wrote:
i want to run it in one applicaiton.yml axon: kafka: producer:defaulttopic: mydefaulttopic producer: retries: 5 bootstrapservers: - 127.0.0.1:9092 transaction-id-prefix: clxtrx client-id: myproducer eventhandling: processors: "[MyProcessor]": source: kafkaMessageSource mode: TRACKING clientid: myconsumer defaulttopic: mydefaulttopic consumer: group-id: boot bootstrapservers: - 127.0.0.1:9092 Is this the right configuration? Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/marinkobabic/axon-kafka-example/issues/2#issuecomment-416034843, or mute the thread https://github.com/notifications/unsubscribe-auth/ADHSOPL_XTs__5rhFLfXInyGAjT1xUoYks5uUpGtgaJpZM4WLEv8 .
yes,in one service.
Have you been able to solve this problem?
can you help me to solve this problem . thanks