You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Mostafa Elhemali (JIRA)" <ji...@apache.org> on 2014/10/13 18:21:34 UTC

[jira] [Commented] (HADOOP-11196) Implement isFileClosed in WASB to make Flume happy

    [ https://issues.apache.org/jira/browse/HADOOP-11196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169467#comment-14169467 ] 

Mostafa Elhemali commented on HADOOP-11196:
-------------------------------------------

Sample exception from Flume:

{{
flume.sink.hdfs.BucketWriter.getRefIsClosed:210)  - isFileClosed is not available in the version of HDFS being used. Flume will not attempt to close files if the close fails on the first attempt
java.lang.NoSuchMethodException: org.apache.hadoop.fs.azure.NativeAzureFileSystem.isFileClosed(org.apache.hadoop.fs.Path)
        at java.lang.Class.getMethod(Class.java:1665)
        at org.apache.flume.sink.hdfs.BucketWriter.getRefIsClosed(BucketWriter.java:207)
        at org.apache.flume.sink.hdfs.BucketWriter.open(BucketWriter.java:295)
        at org.apache.flume.sink.hdfs.BucketWriter.append(BucketWriter.java:584)
        at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:426)
        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:745)
}}

> Implement isFileClosed in WASB to make Flume happy
> --------------------------------------------------
>
>                 Key: HADOOP-11196
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11196
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: Mostafa Elhemali
>            Priority: Minor
>
> Flume uses reflection to call isFileClosed() which is a method implemented by DFS but not part of the FileSystem abstract base class. It still works if the function is not implemented, but issues a lot of warnings and is distracting. It would help make it work smoother if we added the same method in the NativeAzureFileSystem class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)