Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume, mail # user - Extending HTTPHandler in Flume


Copy link to this message
-
Re: Extending HTTPHandler in Flume
Deepak Subhramanian 2013-10-03, 13:26
Thanks Dave. I got it done extended. I struggled for sometime since I put
the jar in the wrong directory. It will be good to have the documentation
updated with this information.

For the Source to pick up the new java class , the jar needs to be in the
plugins.d/<flumesrcname>/lib directory. I put directly in the plugins.d
directory.
On Thu, Oct 3, 2013 at 2:06 PM, David Sinclair <
[EMAIL PROTECTED]> wrote:

> Hi Deepak,
>
> You just need to provide an implementation of the HTTPSourceHandler
> interface and set the *handler* to the fully qualified class name of your
> class. Additional parameters will be given to your handle on the configure
> method. The properties will be anything that starts with *handler.*.*
> *
> *
> hope that helps,
>
> dave
>
>
> On Wed, Oct 2, 2013 at 4:25 PM, Deepak Subhramanian <
> [EMAIL PROTECTED]> wrote:
>
>> Hi ,
>>
>> Has anyone extended HTTPHandler  in Flume . I am trying to add an
>> extension to recieve xml documents and convert it to Avro. Appreciate any
>> inputs
>>
>> Thanks,
>> Deepak Subhramanian
>>
>
>
--
Deepak Subhramanian