title: Getting error - "Could not configure source r1 due to: Failed to configure component!"
body: <p>I was learning Flume and encountered an error. It prompt me was &quot;Could not configure source r1 due to: Failed to configure component!&quot;</p>
  <p>My requirements are as follows:
  Flume1 monitors port data sends the monitored data to Flume2, Flume3, and Flume4 and prints it to the console.<br />
  Data containing &quot;ATguigu&quot; is sent to Flume2, data containing &quot;Shangguigu&quot; is sent to Flume3, and other data is sent to Flume4</p>
  <p>My four configuration files are：</p>
  <pre><code>flume1:
  a1.sources=r1
  a1.channels=c1 c2 c3
  a1.sinks=k1 k2 k3
  
  a1.sources.r1.type=netcat
  a1.sources.r1.bind=localhost
  a1.sources.r1.port=5555
  
  
  # Interceptor
  a1.sources.r1.interceptors=i1
  a1.sources.r1.interceptors.i1.type=com.cmcz.flume.interceptor.EventHeaderInterceptor$MyBuilder
  
  
  # channel selector：multiplexing channel selector
  a1.sources.r1.selector.type = multiplexing
  a1.sources.r1.selector.header = title
  a1.sources.r1.selector.mapping.at = c1
  a1.sources.r1.selector.mapping.st = c2
  a1.sources.r1.selector.default = c3
  
  
  
  
  a1.channels.c1.type=memory
  a1.channels.c1.capacity=10000
  a1.channels.c1.transactionCapacity=100
  a1.channels.c2.type=memory
  a1.channels.c2.capacity=10000
  a1.channels.c2.transactionCapacity=100
  a1.channels.c3.type=memory
  a1.channels.c3.capacity=10000
  a1.channels.c3.transactionCapacity=100
  
  a1.sinks.k1.type=avro
  a1.sinks.k1.hostname=localhost
  a1.sinks.k1.port=6666
  a1.sinks.k2.type=avro
  a1.sinks.k2.hostname=localhost
  a1.sinks.k2.port=7777
  a1.sinks.k3.type=avro
  a1.sinks.k3.hostname=localhost
  a1.sinks.k3.port=8888
  
  
  a1.sources.r1.channnels=c1 c2 c3
  a1.sinks.k1.channel=c1
  a1.sinks.k2.channel=c2
  a1.sinks.k3.channel=c3
  
  
  
  flume2:
  a2.sources=r1
  a2.channels=c1
  a2.sinks=k1
  
  a2.sources.r1.type=avro
  a2.sources.r1.bind=localhost
  a2.sources.r1.port=6666
  
  a2.channels.c1.type=memory
  a2.channels.c1.capacity=10000
  a2.channels.c1.transactionCapacity=100
  
  a2.sinks.k1.type=logger
  
  a2.sources.r1.channels=c1
  a2.sinks.k1.channel=c1
  
  flume3:
  a3.sources=r1
  a3.channels=c1
  a3.sinks=k1
  
  a3.sources.r1.type=avro
  a3.sources.r1.bind=localhost
  a3.sources.r1.port=7777
  
  a3.channels.c1.type=memory
  a3.channels.c1.capacity=10000
  a3.channels.c1.transactionCapacity=100
  
  a3.sinks.k1.type=logger
  
  a3.sources.r1.channels=c1
  a3.sinks.k1.channel=c1
  
  flume4:
  a4.sources=r1
  a4.channels=c1
  a4.sinks=r1
  
  a4.sources.r1.type=avro
  a4.sources.r1.bind=localhost
  a4.sources.r1.port=8888
  
  a4.channels.c1.type=memory
  a4.channels.c1.capacity=10000
  a4.channels.c1.transactionCapacity=100
  
  a4.sinks.k1.type=logger
  
  a4.sources.r1.channels=c1
  a4.sinks.k1.channel=c1
  
  
  And then I start them：
  flume-ng agent -c $FLUME_HOME/conf -f $FLUME_HOME/jobs/multiplexing/flume4.conf -n a4 -Dflume.root.logger=INTO,console
  flume-ng agent -c $FLUME_HOME/conf -f $FLUME_HOME/jobs/multiplexing/flume3.conf -n a3 -Dflume.root.logger=INTO,console
  flume-ng agent -c $FLUME_HOME/conf -f $FLUME_HOME/jobs/multiplexing/flume2.conf -n a2 -Dflume.root.logger=INTO,console
  flume-ng agent -c $FLUME_HOME/conf -f $FLUME_HOME/jobs/multiplexing/flume1.conf -n a1 -Dflume.root.logger=INTO,console
  </code></pre>
  <p>An error occurred during startup of flume1：
  <a href="https://i.stack.imgur.com/pob3y.png" rel="nofollow noreferrer">Source r1 failed to start.</a></p>
  <p>What should I do?</p>