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

Switch to Threaded View
Flume, mail # user - HTTP Source not working


Copy link to this message
-
Re: HTTP Source not working
Deepak Subhramanian 2013-10-02, 14:37
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 <
[EMAIL PROTECTED]> 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