在本地,代码工作正常。我能够使用kafka消息,但在开发人员中,出现错误提示
df <- structure(list(gender = structure(c(1L, 2L, 1L, 1L, 2L, 1L, 2L, 2L, 1L), .Label = c("Man", "Woman"), class = "factor"), shoe = c(43L,36L, 43L, 36L, 43L, 44L, 38L, 37L, 41L), height = c(176L, 166L,182L, 151L, 183L, 184L, 164L, 160L, 175L), colour = structure(c(3L,2L, 4L, 2L, 1L, 1L, 2L, 2L, 2L), .Label = c("Blue", "Brown", "Green", "Other"), class = "factor")), class = "data.frame", row.names = c(NA,-9L))
将Azure开发者用作开发者主机
代码:
2020-01-21T10:49:48.373749251Z [21-01-2020 10:49:48.373] WARN [] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.kafka.config.internalKafkaListenerEndpointRegistry'; nested exception is org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata
2020-01-21T10:49:48.433030131Z [21-01-2020 10:49:48.428] ERROR [] org.springframework.boot.SpringApplication: Application run failed
2020-01-21T10:49:48.433064831Z org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata
2020-01-21T10:49:48.433071331Z Wrapped by: org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.kafka.config.internalKafkaListenerEndpointRegistry'; nested exception is org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata
2020-01-21T10:49:48.433076931Z at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185)
2020-01-21T10:49:48.433082131Z at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
您能建议吗?谢谢