flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Subhramanian <deepak.subhraman...@gmail.com>
Subject Re: HTTP Source not working
Date Wed, 02 Oct 2013 14:37:15 GMT
It started working. It looks like it is something related to way cdh update
the config file. It was not getting updated properly.


On Wed, Oct 2, 2013 at 12:26 PM, Deepak Subhramanian <
deepak.subhramanian@gmail.com> wrote:

> Hi I am trying to use Flume HTTP Handler . But getting an error while
> starting the agent. I am using CDH4.3
>
>
> Command failed to run because this role has invalid configuration. Review and correct
its configuration. First error: Component tier1: Configuration of component failed. ("#httpsrc")
>
>
> This is the conf I am using . It worked when I used netcat source.
>
> tier1.sources  = httpsrc1
> tier1.channels = c1
> tier1.sinks    = sink1
> # For each source, channel, and sink, set
> # standard properties.
> #tier1.sources.source1.type     = netcat
> #tier1.sources.source1.bind     = 127.0.0.1
> #tier1.sources.source1.port     = 9999
> #tier1.sources.source1.channels = c1
>
>
> tier1.sources.httpsrc1.bind     = 127.0.0.1
> tier1.sources.httpsrc1.type = http
> tier1.sources.httpsrc1.port = 9999
> tier1.sources.httpsrc1.channels = c1
> tier1.sources.httpsrc1.handler =org.apache.flume.source.http.JSONHandler
> tier1.sources.httpsrc1.handler.nickname = HTTPTesting
>
> tier1.channels.c1.type   = memory
> tier1.channels.c1.capacity = 10
> #tier1.sinks.sink1.type         = logger
> tier1.sinks.sink1.channel      = c1
>
> tier1.sinks.sink1.type = hdfs
> tier1.sinks.sink1.hdfs.path = /tmp/flumecollector
> tier1.sinks.sink1.hdfs.filePrefix = access_log
>
> --
> Deepak Subhramanian
>



-- 
Deepak Subhramanian

Mime
View raw message