一段时间后,卡夫卡停了下来

时间:2016-09-22 06:52:30

标签: hadoop apache-kafka

我让卡夫卡跑了很多天。几天后,kafka停止了以下异常工作

  

错误发出指标的异常   (org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter)   org.apache.hadoop.metrics2.sink.timeline.UnableToConnectException:   java.net.SocketTimeoutException:读取超时时间   org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink.emitMetrics(AbstractTimelineMetricsSink.java:87)     在   org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter.access $ 200(KafkaTimelineMetricsReporter.java:58)     在   org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter $ TimelineScheduledReporter.report(KafkaTimelineMetricsReporter.java:253)     在   org.apache.hadoop.metrics2.sink.kafka.ScheduledReporter.report(ScheduledReporter.java:185)     在   org.apache.hadoop.metrics2.sink.kafka.ScheduledReporter $ 1.run(ScheduledReporter.java:137)     在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)     在   java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:178)     在   java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)     在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:745)引起:   java.net.SocketTimeoutException:读取超时时间   java.net.SocketInputStream.socketRead0(Native Method)at   java.net.SocketInputStream.read(SocketInputStream.java:152)at   java.net.SocketInputStream.read(SocketInputStream.java:122)at   java.io.BufferedInputStream.fill(BufferedInputStream.java:235)at   java.io.BufferedInputStream.read1(BufferedInputStream.java:275)at   java.io.BufferedInputStream.read(BufferedInputStream.java:334)at   sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)at   sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)at   sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)     在   java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)     在   org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink.emitMetrics(AbstractTimelineMetricsSink.java:78)

为了让kafka接受发送给它的消息,我必须在发生这种情况时重启kafka。 有人可以帮我解释为什么会出现上述异常吗?是否需要进行任何配置更改才能使其一直工作?

非常感谢任何帮助。

0 个答案:

没有答案