Flume-ng代理无法启动并提供nullpointer异常

时间:2014-03-13 10:08:41

标签: flume

我正在编写自定义源接收器和通道,我的配置文件就像

agent.sources = source
agent.sinks = sink
agent.channels = channel
agent.sources.source.type = com.flume.FlumeSource
agent.sources.source.channels = channel
agent.channels.channel.type = com.flume.FlumeChannel$Builder
agent.channels.channel.type = file
agent.sinks.sink.type = com.flume.FlumeSink
agent.sinks.sink.hdfs.path = <hdfs path>
agent.sources.source.channels = channel
agent.sinks.sink.channel = channel

我试图通过使用命令

将jar添加到flume类路径来启动代理
bin/flume-ng agent --conf-file flume.config --classpath /usr/lib/flume-ng/agent.jar --name nab-agent -Dflume.root.logger=DEBUG,console`

它表示hdfs路径不存在于何处。它给出NullPointerException说主机名不存在。 org.apache.flume.node.Application

中找不到主要类

0 个答案:

没有答案