Issue with special characters in file for Camel HDFS

2014-09-12 Thread Chirag Dewan
Hi All, Recently I faced a problem in HDFS producer with files which have special characters in the name. Apparently,when we create hadoop file system in HdfsInfo.java and pass the hdfsPath(hdfs://ip:port/filename,file name is abc}123.txt) it is unable to create the URI and it throws some excep

Re: Uncaught CamelRuntimeException in HDFS

2014-09-01 Thread Chirag Dewan
ce somehow. Can you reproduce the issue without storm? And how do you store in hdfs, do you use camel-hdfs or something else? On Sun, Aug 31, 2014 at 10:25 AM, Chirag Dewan wrote: > > > Hi All, > > > > I have a route which polls the files from FTP server and stores them in H

Uncaught CamelRuntimeException in HDFS

2014-08-31 Thread Chirag Dewan
Hi All, I have a route which polls the files from FTP server and stores them in HDFS. Now when I shut down my datanodes in HDFS and try to poll a file,I get an uncaught RuntimeException and my process dies(storm worker). Is there any way I can catch the CamelRuntimeException,maybe log the e

Re: Cached temp files not deleted when StreamCaching is enabled

2014-08-06 Thread Chirag Dewan
something else? On Wed, Aug 6, 2014 at 12:47 PM, Chirag Dewan wrote: > Hi Claus, > > I have stopped my application,thus stopping CamelContext. But still I can see > the Spool directory. > > > Dont know if I am doing something wrong. Can this be a permissions issue? > Wou

Re: Cached temp files not deleted when StreamCaching is enabled

2014-08-06 Thread Chirag Dewan
apache.org/stream-caching.html You can turn this off with removeSpoolDirectoryWhenStopping On Wed, Aug 6, 2014 at 10:25 AM, Chirag Dewan wrote: > Hi Claus, > > Sorry for the delay to try the fix and revert. > > I actually upgraded the camel to 2.13.0. And switched from hdfs2 to fil

Re: Cached temp files not deleted when StreamCaching is enabled

2014-08-06 Thread Chirag Dewan
- can't quite recall what the bug was, but just that it was in the .0 release. On Wed, Jul 30, 2014 at 11:10 AM, Chirag Dewan wrote: > Hi Camel Riders, > > I have a route like : > > from("ftp:someip").process("someprocessor").streamCaching().to("hdf

Cached temp files not deleted when StreamCaching is enabled

2014-07-30 Thread Chirag Dewan
Hi Camel Riders, I have a route like : from("ftp:someip").process("someprocessor").streamCaching().to("hdfs2:someip"); Now I can see that there are a lot of temp files being created in the root directory for caching which are not deleted even after a 1000's of files are picked from FTP server.

Re: Using Stream Caching with FTP Consumer

2014-07-28 Thread Chirag Dewan
Re: Using Stream Caching with FTP Consumer The file metadata is stored as headers so you find them there. On Mon, Jul 28, 2014 at 10:18 AM, Chirag Dewan wrote: > Hi All, > > I have a route which consumes files from FTP server and distributes them to > HDFS. > > > Now,I h

Using Stream Caching with FTP Consumer

2014-07-28 Thread Chirag Dewan
Hi All, I have a route which consumes files from FTP server and distributes them to HDFS. Now,I have a processor in which I want to rename a file and append properties like file size and timestamp in the file name. Earlier,I was doing it by getting the GenericFile instance from exchange body

Re: A basic query with using Direct Component

2014-06-19 Thread Chirag Dewan
ing Direct Component I am not sure, maybe try setting the openedSuffix to an empty string to see if that works? On Thu, Jun 19, 2014 at 8:39 AM, Chirag Dewan wrote: > Hi Claus, > > Thanks for response. > > I am using Camel 2.12.1 with camel-hdfs 2. > > Yes,that is the pro

Re: How to transfer folder to another ftp server.

2014-06-19 Thread Chirag Dewan
Hi, You want the exact same folder structure to be created on the destination server? If not,you can use recursive property of File component. It will poll the files in sub folders too. Chirag From: skasish To: users@camel.apache.org Sent: Thursday, 19 Ju

Re: A basic query with using Direct Component

2014-06-18 Thread Chirag Dewan
: Claus Ibsen To: "users@camel.apache.org" Sent: Thursday, 19 June 2014 11:37 AM Subject: Re: A basic query with using Direct Component On Thu, Jun 19, 2014 at 7:11 AM, Chirag Dewan wrote: > Hi All, > > I have a route with direct as following : > > from("direct:abc&q

A basic query with using Direct Component

2014-06-18 Thread Chirag Dewan
Hi All, I have a route with direct as following : from("direct:abc").to("hdfs2:x?splitStrategy=MESSAGE"); I use the route write files in HDFS. I use the producer template to send a OutputStream to direct: producerTemplate,sendBody("direct:abc",OutputStream); Now HDFS producer creates an .

FTPConsumer with streamdownload=true not able to produce file

2014-06-09 Thread Chirag Dewan
Hello Camel Riders, I have a route : from("ftp:/user@host:port/path?streamdownload=true").process("File Renaming Processor").to("file:/path); Now this works fine for 10-15k files. After that no more files are consumed. I used JMC to profile my application. I can see that the consumer thread is

Re: pollEnrich all the files in a directory

2014-05-04 Thread Chirag Dewan
Hi Claus, Thanks for the quick reply. I have to consume all the files upon a command,and then stop the route from continuously polling the files untill the next command comes. So,can I also stop the control bus once all my files are consumed? Maybe from within the route? BR, Chirag Dewan

pollEnrich all the files in a directory

2014-05-04 Thread Chirag Dewan
eateProducerTemplate().sendBody("seda:abc",null/""); BR, Chirag Dewan

Re: Error handler to both logger and dead letter queue?

2014-03-27 Thread Chirag Dewan
Hi, You can try the log component. http://camel.apache.org/log.html BR, Chirag From: Rural Hunter To: users@camel.apache.org Sent: Wednesday, 26 March 2014 7:20 AM Subject: Error handler to both logger and dead letter queue? Hi, I configured the error

Re: OOM issue due to MemoryIdempotentRepository

2014-02-21 Thread Chirag Dewan
Java file reading here. Thanks a lot for you help. Chirag Dewan From: Chirag Dewan To: "users@camel.apache.org" Sent: Thursday, 20 February 2014 4:06 PM Subject: Re: OOM issue due to MemoryIdempotentRepository Hi, After setting the max cache fo

Re: OOM issue due to MemoryIdempotentRepository

2014-02-20 Thread Chirag Dewan
cache-size-for-producercache-or-producertemplate.html You can set it to 1 or 0 to not have any pooling. On Thu, Feb 20, 2014 at 10:53 AM, Chirag Dewan wrote: > Hi Claus, > > Sorry for the late reply. > > I wrote a simple code to test this behaviour: > >        CamelContex

Re: OOM issue due to MemoryIdempotentRepository

2014-02-20 Thread Chirag Dewan
And when I call template.stop(),all the threads are destroyed. From: Chirag Dewan To: "users@camel.apache.org" Sent: Thursday, 20 February 2014 3:23 PM Subject: Re: OOM issue due to MemoryIdempotentRepository Hi Claus, Sorry for the late reply

Re: OOM issue due to MemoryIdempotentRepository

2014-02-20 Thread Chirag Dewan
ate.doneUoW(exchange);             i++;                    }                 template.stop(); Even on profiling this I see a thread being created for every file consumed by the template. And the memory continous to grow. Thanks. Chirag Dewan        From: Claus Ibsen

Re: OOM issue due to MemoryIdempotentRepository

2014-02-17 Thread Chirag Dewan
doneUoW the inprogressRepository cache is cleared. Which is not getting cleared at the moment(the reason I believe is causing the OOM) . Is there a possibility that doneUoW is not working as it should? Thanks . Chirag  From: Chirag Dewan To: "

Re: OOM issue due to MemoryIdempotentRepository

2014-02-17 Thread Chirag Dewan
users@camel.apache.org" ; Chirag Dewan Sent: Monday, 17 February 2014 1:28 PM Subject: Re: OOM issue due to MemoryIdempotentRepository On Mon, Feb 17, 2014 at 8:49 AM, Chirag Dewan wrote: > Hi Claus, > > So I dont need to start/stop the template for every file? > > Right now I create a co

Re: OOM issue due to MemoryIdempotentRepository

2014-02-16 Thread Chirag Dewan
t too http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html On Mon, Feb 17, 2014 at 8:00 AM, Chirag Dewan wrote: > Hi All, > > Any views on this? > > Actually my previous mail is not understandable. Let me rephrase the issue. > > I am using consumer

Re: OOM issue due to MemoryIdempotentRepository

2014-02-16 Thread Chirag Dewan
. Is there something I am missing here? Thanks in advance. Chirag Dewan From: Chirag Dewan To: "users@camel.apache.org" ; Chirag Dewan Sent: Friday, 14 February 2014 3:22 PM Subject: Re: OOM issue due to MemoryIdempotentRepository Hi All, I

Re: OOM issue due to MemoryIdempotentRepository

2014-02-14 Thread Chirag Dewan
inProgressRepository? And when is it cleared from the memory? Any help is much appreciated. Thanks! Chirag Dewan From: Chirag Dewan To: "users@camel.apache.org" ; Chirag Dewan Sent: Wednesday, 12 February 2014 6:31 PM Subject: Re: OOM is

Re: OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
Hi, And I am using readLock=changed. So that can be a reason too? Chirag Dewan From: Chirag Dewan To: "users@camel.apache.org" Sent: Wednesday, 12 February 2014 6:07 PM Subject: Re: OOM issue due to MemoryIdempotentRepository Hi Claus, Than

Re: OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
  >org.apache.camel.com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap I maybe doing something wrong here. Is there anything else I need to do to make sure that file is deleted after it has been processed and not stored in the cache? Thanks. Chirag De

OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
ory used,even if I am deleting the files and not storing in memory? Is there a way I can avoid that? I am testing this scenario under Storm as execution environment and with 2GB max heap space. Thanks in advance Chirag Dewan

Re: Large Number of threads getting spawned in File Producer

2014-02-05 Thread Chirag Dewan
r details. Regards, Richard On Wed, Feb 5, 2014 at 5:23 AM, Chirag Dewan wrote: > Hi All, > > Any views on this? > > BR, > > Chirag > >

Re: Large Number of threads getting spawned in File Producer

2014-02-05 Thread Chirag Dewan
at causes threads to be spawned. You can try to just do from ftp -> to file or from ftp -> to log and see if there is some changes. All the threads pool used by Camel are enlisted in JMX which you can see. Maybe that can also give some pointers. On Tue, Feb 4, 2014 at 12:33 PM, Chirag

Re: Large Number of threads getting spawned in File Producer

2014-02-04 Thread Chirag Dewan
Hi All, Any views on this? BR, Chirag

Large Number of threads getting spawned in File Producer

2014-02-04 Thread Chirag Dewan
Hi All, I am using Camel 2.12.1. I have a route which consumes files from a FTP Server and places them on the local disk. from("ftp:admin@ip:port/source_dir&throwExceptionOnConnectFailed=true&stepwise=false&readLock=changed&fastExistsCheck=true&localWorkDirectory=destination_dir/.temp").to("fil

autoCreate and startingDirectoryMustExist on FTP Consumer

2014-02-01 Thread Chirag Dewan
Hi All, Does FTP Consumer support autoCreate and startingDirectoryMustExist options?  I was expecting FTP consumer to throw an exception if starting directory does not exist(autoCreate=false and startingDirectoryMustExist=true)  just like File Consumer. Thanks Chirag Dewan

Custom PollingConsumerPollingStrategy Query

2014-01-27 Thread Chirag Dewan
exception and thus stop polling and ? Do I have to create Consumer template here? And if I do that how can I just poll the FTP server without polling and downloading a file,since my endpoint deletes the file. Thanks Chirag Dewan

Issue while using producer template with FTP for Unit Testing

2014-01-20 Thread Chirag Dewan
there something else I need to do to achieve this. Thanks Chirag Dewan

Re: File Names with appended sequence number in camel-ftp 2.12.1

2014-01-14 Thread Chirag Dewan
Hi Claus, So is there a language expression like date which I can use here or I have to use a processor/bean? Thanks for your help. Sent from Yahoo Mail on Android

File Names with appended sequence number in camel-ftp 2.12.1

2014-01-14 Thread Chirag Dewan
  want the files with increasing sequence. Thanks! Chirag Dewan

File Names with appended sequence number in camel-ftp 2.12.1

2014-01-14 Thread Chirag Dewan
  want the files with increasing sequence. Thanks! Chirag Dewan

Passing a reference of MyObject to a bean

2014-01-09 Thread Chirag Dewan
Hi all, This may be a very straight forward thing,but I was not able to find it. I have a route like: public class MyRouteBuilder extends RouteBuilder {     private MyObject myObject;     public MyRouteBuilder(MyObject myObject)     {         this.myObject = myObject;     }     @Override  

Stream consuming in Camel

2014-01-07 Thread Chirag Dewan
Hi All, I am using Apache Camel 2.12.1. I have a use case where one of my thread is outputting data to a stream. I need a camel consumer which consumes this stream from that thread and produces a file using camel-file or camel-ftp. Looking at the components,I wonder what I can effectively use h

Re: Assistance required on Mutiple Contexts and Mutiple Routes per Contexts

2013-11-28 Thread Chirag Dewan
Hi All, Any comments on the query? Thanks Chirag Sent from Yahoo Mail on Android

Assistance required on Multiple Contexts and Multiple Routes per contexts Situation

2013-11-27 Thread Chirag Dewan
Hi All, I am working on an application where we intend to use camel Endpoints for most of the components for eg. FTP,SMPP,HTTP,Servlet,Jetty and many more. The idea is to create separate wrapper components for all the endpoints and then use them as libraries in our project.  Now all my compo

Assistance required on Mutiple Contexts and Mutiple Routes per Contexts

2013-11-27 Thread Chirag Dewan
Hi All, I am working on an application where we intend to use camel Endpoints for most of the components for eg. FTP,SMPP,HTTP,Servlet,Jetty and many more. The idea is to create separate wrapper components for all the endpoints and then use them as libraries in our project.  Now all my compon