camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "samnik60 ." <monishs...@gmail.com>
Subject Re: camel hdfs to ftp
Date Tue, 02 Sep 2014 08:52:45 GMT
Hi guys,
Thanks you ur input.

Charles : the use case is just to transfer all files in a given hdfs
directory to a ftp server and end its execution.

I will try out the 'sendEmptyMessageWhenIdle' methodology and revert.

Thanks again,
R.Monish


On Tue, Sep 2, 2014 at 12:33 PM, Charles Moulliard <ch007m@gmail.com> wrote:

> To be informed that you have polled all the files in a specific directory
> (your hdfs dir), you can ask the pollingConsumer of the file
> component/endpoint to send an empty message using this property
> ("sendEmptyMessageWhenIdle")
> and using a ContentBaseRouter with a predicate (check that you get an empty
> message, check that you get this property -->) to trigger your second camel
> route.
>
>
> On Tue, Sep 2, 2014 at 8:35 AM, Charles Moulliard <ch007m@gmail.com>
> wrote:
>
> > Hi Monish,
> >
> > What is your use case ? If you use Apache Camel to transfert the files
> > from a directory to a FTP Server, what would you like to do next ("I want
> > the route to execute only till all the files in the directory are
> transferred")
> > ? If I follow you correctly, you are interested to setup 2 camel routes;
> > one transferring the files from a dir to a ftp server and the second
> which
> > is triggered if all the files have been transferred ?
> >
> > Regards,
> >
> >
> > On Mon, Sep 1, 2014 at 6:38 PM, samnik60 . <monishsvce@gmail.com> wrote:
> >
> >> Hi guys,
> >> I am trying to use camel for the following use case,
> >>
> >> Take all files in a hdfs directory -> transfer the files to a ftp server
> >>
> >> I want the route to execute only till all the files in the directory are
> >> transfered. I have looked at camel-hdfs2 and camel-ftp component , but
> it
> >> seems to give me a
> >> polling logic.
> >>
> >> Is camel a good fit for this use case or  should i use hdfs api and java
> >> ftp api for this.
> >>
> >> Any example or suggestions on which way to proceed will be great.
> >>
> >> Regards,
> >> R.Monish
> >>
> >
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Architect @RedHat
> > Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
> >
> >
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message