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

S3 sink cannot be used if your AWS keys needs escaping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Node
    • Amazon EC2 Ubuntu 10.04 LTS

    Description

      If you key or secret contains "/" characters, you are instructed to escape them (see http://wiki.apache.org/hadoop/AmazonS3).

      For example:

       
      19823791823/1232323/nm3nm
      

      ...should be changed to:

       
      19823791823%2F1232323%2Fnm3nm
      

      When using that in your sink configuration:

       
      collectorSink( "s3n://key:19823791823%2F1232323%2Fnm3nm@str-flume-ec2production/%Y-%m-%d/%H00/", "nginx-" )
      

      ...the Flume collector outputs this:

       
      2011-02-28 23:06:20,009 WARN com.cloudera.flume.core.Event: Unrecognized escape in event format string: %2
      

      So then we tried double-escaping it:

       
      19823791823%%2F1232323%%2Fnm3nm
      

      ...which passed the Flume escape check but now fails S3 auth.

      Rob

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--FLUME-542.log
          13 kB
          Disabled imported user

        Issue Links

          Activity

            People

              Unassigned Unassigned
              flume_robert.slifka@gmail.com Disabled imported user
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: