EFAK
EFAK copied to clipboard
1.3.3获取kafka集群信息报错
使用dockerhub上的镜像时获取kafka集群信息报错 [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - ZK init has error,msg is Array index out of range: 0 [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Kafka cluster[cluster1.zk.list] address has null. [2023-04-27 03:15:00] JobRunShell.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Job DEFAULT.metricsDetail threw an unhandled Exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'metricsJobQuartz' on target class [class org.smartloli.kafka.eagle.web.quartz.MetricsQuartz] failed; nested exception is java.lang.NullPointerException at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:266) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) Caused by: java.lang.NullPointerException at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getAllBrokersInfo(KafkaServiceImpl.java:223) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.parseBrokerServer(KafkaServiceImpl.java:565) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getKafkaConsumer(KafkaServiceImpl.java:654) at org.smartloli.kafka.eagle.web.quartz.MetricsQuartz.metricsJobQuartz(MetricsQuartz.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257) ... 3 more [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] ErrorLogger.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-5 - ERROR - Job (DEFAULT.metricsDetail threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'metricsJobQuartz' on target class [class org.smartloli.kafka.eagle.web.quartz.MetricsQuartz] failed; nested exception is java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'metricsJobQuartz' on target class [class org.smartloli.kafka.eagle.web.quartz.MetricsQuartz] failed; nested exception is java.lang.NullPointerException at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:266) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ... 1 more Caused by: java.lang.NullPointerException at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getAllBrokersInfo(KafkaServiceImpl.java:223) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.parseBrokerServer(KafkaServiceImpl.java:565) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getKafkaConsumer(KafkaServiceImpl.java:654) at org.smartloli.kafka.eagle.web.quartz.MetricsQuartz.metricsJobQuartz(MetricsQuartz.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257) ... 3 more [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client' [2023-04-27 03:15:00] KafkaZKPoolUtils.org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-5 - ERROR - Exception while loading Zookeeper JAAS login context 'Client'
这个应该是你没配置好相应的sasl登录认证信息造成的吧