报错
Could not configure sink k1 due to: Component has no type. Cannot configure. k1
org.apache.flume.conf.ConfigurationException: Component has no type. Cannot configure. k1
at org.apache.flume.conf.ComponentConfiguration.configure(ComponentConfiguration.java:76)
at org.apache.flume.conf.sink.SinkConfiguration.configure(SinkConfiguration.java:44)
at org.apache.flume.conf.FlumeConfiguration
A
g
e
n
t
C
o
n
f
i
g
u
r
a
t
i
o
n
.
v
a
l
i
d
a
t
e
S
i
n
k
s
(
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
867
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
c
o
n
f
.
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
AgentConfiguration.validateSinks(FlumeConfiguration.java:867) at org.apache.flume.conf.FlumeConfiguration
AgentConfiguration.validateSinks(FlumeConfiguration.java:867)atorg.apache.flume.conf.FlumeConfigurationAgentConfiguration.isValid(FlumeConfiguration.java:383)
at org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.access
000
(
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
228
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
c
o
n
f
.
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
v
a
l
i
d
a
t
e
C
o
n
f
i
g
u
r
a
t
i
o
n
(
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
153
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
c
o
n
f
.
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
<
i
n
i
t
>
(
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
133
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
n
o
d
e
.
P
r
o
p
e
r
t
i
e
s
F
i
l
e
C
o
n
f
i
g
u
r
a
t
i
o
n
P
r
o
v
i
d
e
r
.
g
e
t
F
l
u
m
e
C
o
n
f
i
g
u
r
a
t
i
o
n
(
P
r
o
p
e
r
t
i
e
s
F
i
l
e
C
o
n
f
i
g
u
r
a
t
i
o
n
P
r
o
v
i
d
e
r
.
j
a
v
a
:
194
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
n
o
d
e
.
A
b
s
t
r
a
c
t
C
o
n
f
i
g
u
r
a
t
i
o
n
P
r
o
v
i
d
e
r
.
g
e
t
C
o
n
f
i
g
u
r
a
t
i
o
n
(
A
b
s
t
r
a
c
t
C
o
n
f
i
g
u
r
a
t
i
o
n
P
r
o
v
i
d
e
r
.
j
a
v
a
:
97
)
a
t
o
r
g
.
a
p
a
c
h
e
.
f
l
u
m
e
.
n
o
d
e
.
P
o
l
l
i
n
g
P
r
o
p
e
r
t
i
e
s
F
i
l
e
C
o
n
f
i
g
u
r
a
t
i
o
n
P
r
o
v
i
d
e
r
000(FlumeConfiguration.java:228) at org.apache.flume.conf.FlumeConfiguration.validateConfiguration(FlumeConfiguration.java:153) at org.apache.flume.conf.FlumeConfiguration.<init>(FlumeConfiguration.java:133) at org.apache.flume.node.PropertiesFileConfigurationProvider.getFlumeConfiguration(PropertiesFileConfigurationProvider.java:194) at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:97) at org.apache.flume.node.PollingPropertiesFileConfigurationProvider
000(FlumeConfiguration.java:228)atorg.apache.flume.conf.FlumeConfiguration.validateConfiguration(FlumeConfiguration.java:153)atorg.apache.flume.conf.FlumeConfiguration.<init>(FlumeConfiguration.java:133)atorg.apache.flume.node.PropertiesFileConfigurationProvider.getFlumeConfiguration(PropertiesFileConfigurationProvider.java:194)atorg.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:97)atorg.apache.flume.node.PollingPropertiesFileConfigurationProviderFileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:145)
at java.util.concurrent.Executors
R
u
n
n
a
b
l
e
A
d
a
p
t
e
r
.
c
a
l
l
(
E
x
e
c
u
t
o
r
s
.
j
a
v
a
:
511
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
F
u
t
u
r
e
T
a
s
k
.
r
u
n
A
n
d
R
e
s
e
t
(
F
u
t
u
r
e
T
a
s
k
.
j
a
v
a
:
308
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor
RunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access
301
(
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
.
j
a
v
a
:
180
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor
301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
配置文件
# 将指定文件中的内容输出到控制台
a2.sources=r1
a2.sinks=k1
a2.channels=c1
a2.sources.r1.type=exec
a2.sources.r1.command=tail -f /root/flumedemo.log
a2.channels.c1.type=memory
a2.channels.c1.capacity=1000
a2.channels.c1.transactionCapacity=100
a2.sinks,k1,type=logger
a2.sources.r1.channels=c1
a2.sinks.k1.channel=c1
一开始没找到错误,可能眼睛有问题
发现是符号打成了,