You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rubavathi <ru...@mobax.com> on 2015/08/04 16:16:31 UTC

camel-s3 route : recursive=true doesn't work

Hi,

On creating the following route I am getting exception:

org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at: >>>
To[aws-s3://buckettest?recursive=true&amazonS3Endpoint=endpoint&accessKey=accesskey&region=region]
<<< in route: Route(route1) due to: There are 1 parameters that couldn't be
set on the endpoint. Check the uri if the parameters are spelt correctly and
that they are properties of the endpoint. Unknown
parameters=[{recursive=true}]
	at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:123)
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485)
	at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)

Can't we use "recursive=true" on defining camel routes?



--
View this message in context: http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-s3 route : recursive=true doesn't work

Posted by rubavathi <ru...@mobax.com>.
I used "recursive=true" on defining the "from" insterad of "to". It works
fine. Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278p5770467.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-s3 route : recursive=true doesn't work

Posted by rubavathi <ru...@mobax.com>.
We want to move folders periodically using camel-route. We can able to define
routes to move files from a local folder to s3 buckets. But we can't move
folders from local server to s3 using camel



--
View this message in context: http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278p5770293.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-s3 route : recursive=true doesn't work

Posted by james lapointe <ja...@gmail.com>.
if its just copying the files there are rsync s3 tools that will copy/sync
folders
On Aug 4, 2015 9:34 PM, "rubavathi" <ru...@mobax.com> wrote:

> is there any way to upload folders to s3. We have to upload our reports on
> daily basis. so in our local system we will create folders like 2014-08-04
> and create log files. end of the day the folder 2014-08-04 have to be moved
> using camel-route.
>
> Is it possible?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278p5770290.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: camel-s3 route : recursive=true doesn't work

Posted by rubavathi <ru...@mobax.com>.
is there any way to upload folders to s3. We have to upload our reports on
daily basis. so in our local system we will create folders like 2014-08-04
and create log files. end of the day the folder 2014-08-04 have to be moved
using camel-route.

Is it possible?

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278p5770290.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-s3 route : recursive=true doesn't work

Posted by Christian Müller <ch...@gmail.com>.
No. Please check: http://camel.apache.org/aws-s3.html

Best,
Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642

On Tue, Aug 4, 2015 at 4:16 PM, rubavathi <ru...@mobax.com>
wrote:

> Hi,
>
> On creating the following route I am getting exception:
>
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.FailedToCreateRouteException: Failed to create route
> route1
> at: >>>
>
> To[aws-s3://buckettest?recursive=true&amazonS3Endpoint=endpoint&accessKey=accesskey&region=region]
> <<< in route: Route(route1) due to: There are 1 parameters that couldn't be
> set on the endpoint. Check the uri if the parameters are spelt correctly
> and
> that they are properties of the endpoint. Unknown
> parameters=[{recursive=true}]
>         at
>
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)
>         at
>
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:123)
>         at
>
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332)
>         at
>
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
>         at
>
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
>         at
>
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776)
>         at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485)
>         at
>
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
>         at
>
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
>         at
>
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
>         at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
>
> Can't we use "recursive=true" on defining camel routes?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-s3-route-recursive-true-doesn-t-work-tp5770278.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>