flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Ng <raymond...@gmail.com>
Subject Exception : Log File is null for id
Date Tue, 02 Oct 2012 08:19:21 GMT
Hi

Could I have some advice for the following exception please, is this
related to the "ChannelException: Cannot acquire capacity" which I
experience from time to time


2012-10-02 09:16:53,563 ERROR [Log-BackgroundWorker] Log.java - General
error in checkpoint worker
java.lang.NullPointerException
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:738)
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:692)
    at org.apache.flume.channel.file.Log.access$300(Log.java:57)
    at org.apache.flume.channel.file.Log$BackgroundWorker.run(Log.java:892)
2012-10-02 09:16:56,317 ERROR
[SinkRunner-PollingRunner-DefaultSinkProcessor] HDFSEventSink.java -
process failed
java.lang.NullPointerException: LogFile is null for id 1
    at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    at org.apache.flume.channel.file.Log.get(Log.java:316)
    at
org.apache.flume.channel.file.FileChannel$FileBackedTransaction.doTake(FileChannel.java:373)
    at
org.apache.flume.channel.BasicTransactionSemantics.take(BasicTransactionSemantics.java:113)
    at
org.apache.flume.channel.BasicChannelSemantics.take(BasicChannelSemantics.java:91)
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:383)
    at
org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
    at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
    at java.lang.Thread.run(Thread.java:662)
2012-10-02 09:16:56,318 ERROR
[SinkRunner-PollingRunner-DefaultSinkProcessor] SinkRunner.java - Unable to
deliver event. Exception follows.
org.apache.flume.EventDeliveryException: java.lang.NullPointerException:
LogFile is null for id 1
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:450)
    at
org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
    at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException: LogFile is null for id 1
    at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    at org.apache.flume.channel.file.Log.get(Log.java:316)
    at
org.apache.flume.channel.file.FileChannel$FileBackedTransaction.doTake(FileChannel.java:373)
    at
org.apache.flume.channel.BasicTransactionSemantics.take(BasicTransactionSemantics.java:113)
    at
org.apache.flume.channel.BasicChannelSemantics.take(BasicChannelSemantics.java:91)
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:383)
    ... 3 more
2012-10-02 09:16:56,625 ERROR [Log-BackgroundWorker] Log.java - General
error in checkpoint worker
java.lang.NullPointerException
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:738)
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:692)
    at org.apache.flume.channel.file.Log.access$300(Log.java:57)
    at org.apache.flume.channel.file.Log$BackgroundWorker.run(Log.java:892)
2012-10-02 09:16:59,678 ERROR [Log-BackgroundWorker] Log.java - General
error in checkpoint worker
java.lang.NullPointerException
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:738)
    at org.apache.flume.channel.file.Log.writeCheckpoint(Log.java:692)
    at org.apache.flume.channel.file.Log.access$300(Log.java:57)
    at org.apache.flume.channel.file.Log$BackgroundWorker.run(Log.java:892)
2012-10-02 09:17:01,318 ERROR
[SinkRunner-PollingRunner-DefaultSinkProcessor] HDFSEventSink.java -
process failed
java.lang.NullPointerException: LogFile is null for id 1
    at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    at org.apache.flume.channel.file.Log.get(Log.java:316)
    at
org.apache.flume.channel.file.FileChannel$FileBackedTransaction.doTake(FileChannel.java:373)
    at
org.apache.flume.channel.BasicTransactionSemantics.take(BasicTransactionSemantics.java:113)
    at
org.apache.flume.channel.BasicChannelSemantics.take(BasicChannelSemantics.java:91)
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:383)
    at
org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
    at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
    at java.lang.Thread.run(Thread.java:662)
2012-10-02 09:17:01,318 ERROR
[SinkRunner-PollingRunner-DefaultSinkProcessor] SinkRunner.java - Unable to
deliver event. Exception follows.
org.apache.flume.EventDeliveryException: java.lang.NullPointerException:
LogFile is null for id 1
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:450)
    at
org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
    at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException: LogFile is null for id 1
    at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    at org.apache.flume.channel.file.Log.get(Log.java:316)
    at
org.apache.flume.channel.file.FileChannel$FileBackedTransaction.doTake(FileChannel.java:373)
    at
org.apache.flume.channel.BasicTransactionSemantics.take(BasicTransactionSemantics.java:113)
    at
org.apache.flume.channel.BasicChannelSemantics.take(BasicChannelSemantics.java:91)
    at
org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:383)
    ... 3 more



-- 
Rgds
Ray

Mime
View raw message