Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2443

org.apache.hadoop.fs.FSDataOutputStream.sync() is deprecated in hadoop 2.4

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Dependency upgrade
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0, 1.5.0.1, 1.6.0
    • 1.6.0
    • None
    • Linux PPC / x86

    Description

      HDFS sink uses this method, which is deprecated in hadoop 2.4.1, and no longer present in the current hadoop developments:

      java.lang.NoSuchMethodError: org/apache/hadoop/fs/FSDataOutputStream.sync()V
      at org.apache.flume.sink.hdfs.HDFSDataStream.sync(HDFSDataStream.java:131)
      at org.apache.flume.sink.hdfs.BucketWriter$6.call(BucketWriter.java:502)
      at org.apache.flume.sink.hdfs.BucketWriter$6.call(BucketWriter.java:499)
      at org.apache.flume.sink.hdfs.BucketWriter$9$1.run(BucketWriter.java:718)
      at org.apache.flume.sink.hdfs.BucketWriter.runPrivileged(BucketWriter.java:183)
      at org.apache.flume.sink.hdfs.BucketWriter.access$1700(BucketWriter.java:59)
      at org.apache.flume.sink.hdfs.BucketWriter$9.call(BucketWriter.java:715)
      at java.util.concurrent.FutureTask.run(FutureTask.java:273)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at java.lang.Thread.run(Thread.java:853)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hshreedharan Hari Shreedharan
            ctrl_alt_suppr Corentin Baron
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment