[ 
https://issues.apache.org/jira/browse/FLUME-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290863#comment-13290863
 ] 

Hari Shreedharan commented on FLUME-1261:
-----------------------------------------

Hi Rosepriya,

Flume does write to the log stating that the agent was not found. I just ran : 
./flume-ng agent -n random -f ~/Desktop/conf_files/conf1 -c ../conf/
with conf:
host2.sources = src1 src2
host2.sinks = sink2 sink1
host2.channels = ch2 ch1
host2.sinkgroups = sg1

host2.sources.src2.type = seq
host2.sources.src2.channels = ch1 ch2
host2.sources.src1.type = seq
host2.sources.src1.channels = ch2 ch1
host2.sinks.sink1.type = logger
host2.sinks.sink1.channel = ch1
host2.channels.ch1.type=memory
host2.channels.ch2.type=memory
host2.sinks.sink2.port = 25001
host2.sinks.sink2.type = avro
host2.sinks.sink2.hostname = localhost
host2.sinks.sink2.channel = ch2
host2.sinkgroups.sg1.sinks = sink1 sink2
host2.sinkgroups.sg1.processor.type = failover
host2.sinkgroups.sg1.processor.priority.sink1 = 1
host2.sinkgroups.sg1.processor.priority.sink2 = 2

----
The log file had this:

2012-06-07 00:30:25,565 INFO conf.FlumeConfiguration: Added sinks: sink2 sink1 
Agent: host2
2012-06-07 00:30:25,565 INFO conf.FlumeConfiguration: Processing:sink2
2012-06-07 00:30:25,565 INFO conf.FlumeConfiguration: Processing:sink1
2012-06-07 00:30:25,565 INFO conf.FlumeConfiguration: Processing:sink2
2012-06-07 00:30:25,601 INFO conf.FlumeConfiguration: Post-validation flume 
configuration contains configuration  for agents: [host2]
2012-06-07 00:30:25,601 WARN properties.PropertiesFileConfigurationProvider: No 
configuration found for this host:random

I am not sure how you are seeing this error. Could you try pulling in the 
latest sources and trying again?
                
> Flume doesn't throw a warning or an error if you pass an undefined agent
> ------------------------------------------------------------------------
>
>                 Key: FLUME-1261
>                 URL: https://issues.apache.org/jira/browse/FLUME-1261
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Rosepriya
>            Priority: Minor
>
> bin/flume-ng agent --conf ./conf/ -f conf/flume.conf -n agentfoo
> If I try to pass an undefined agent (e.g. agentfoo) by mistake, while 
> starting flume doesn't warn or throw any error. There should be some 
> indication regarding this misconfiguration in the logs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to