You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by aidatechinc <HF...@AIDATECH.COM> on 2015/01/22 03:26:47 UTC
S3 Component bucket in file name
Hello,
I am consuming off S3 to a file system. As it start consuming, the first
object is folder in the bucket which the file component treat it as a file
rather than a directory.
any ideas? below what I have tried.
from("aws-s3://bucket?accessKey=xxxxx&secretKey=xxxxx&amazonS3Endpoint=s3-external-1.amazonaws.com&deleteAfterRead=false&prefix=atc/")
.setHeader("CamelFileName",header("CamelAwsS3Key"))
.to("file:///tmp/xx_poc2?fileName=${file:onlyname}")
--
View this message in context: http://camel.465427.n5.nabble.com/S3-Component-bucket-in-file-name-tp5762004.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: S3 Component bucket in file name
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
What version of Camel do you use?
On Thu, Jan 22, 2015 at 3:26 AM, aidatechinc <HF...@aidatech.com> wrote:
> Hello,
> I am consuming off S3 to a file system. As it start consuming, the first
> object is folder in the bucket which the file component treat it as a file
> rather than a directory.
>
> any ideas? below what I have tried.
>
>
> from("aws-s3://bucket?accessKey=xxxxx&secretKey=xxxxx&amazonS3Endpoint=s3-external-1.amazonaws.com&deleteAfterRead=false&prefix=atc/")
>
> .setHeader("CamelFileName",header("CamelAwsS3Key"))
>
> .to("file:///tmp/xx_poc2?fileName=${file:onlyname}")
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/S3-Component-bucket-in-file-name-tp5762004.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/