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

Remove hardcoded file separator in HDFSEventSink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.3.0
    • Sinks+Sources
    • None

    Description

      configure() in HDFSEventSink hardcodes the file separator

          // FIXME: Not portable to Windows
          this.path = dirpath + "/" + fileName;
      

      Fix is very simple, just to use

          this.path = dirpath + System.getProperty("file.separator") + fileName;
      

      Attachments

        1. FLUME-1373.trunk.v1.patch
          1.0 kB
          Mubarak Seyed

        Activity

          People

            mubarakseyed Mubarak Seyed
            mubarakseyed Mubarak Seyed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: