Uploaded image for project: 'Flume (READ-ONLY)'
  1. Flume (READ-ONLY)
  2. FLUME-542

S3 sink cannot be used if your AWS keys needs escaping

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: v0.9.3
    • Fix Version/s: None
    • Component/s: Node
    • Labels:
      None
    • Environment:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robert.slifka@gmail.com Robert Slifka
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: