Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.3获取kafka集群信息报错 #678

Open
wujid opened this issue Apr 27, 2023 · 1 comment
Open

1.3.3获取kafka集群信息报错 #678

wujid opened this issue Apr 27, 2023 · 1 comment

Comments

@wujid
Copy link

wujid commented Apr 27, 2023

使用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'

@RichardXu186
Copy link

这个应该是你没配置好相应的sasl登录认证信息造成的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants