做一个flume收集到另一个flume,再传给hdfs,但是现在flume连接hdfs出现如下错误

![图片说明
图片说明
错误主要是这个:Failed to start agent because dependencies were not found in classpath.上图是报错,麻烦大神解决
下面是配置文件
#master_agent
master_agent.channels = c2
master_agent.sources = s2
master_agent.sinks = k2

#master_agent avrosources
master_agent.sources.s2.type = avro
master_agent.sources.s2.bind = master1
master_agent.sources.s2.port = 41415
master_agent.sources.s2.channels = c2

#master_agent filechannels
master_agent.channels.c2.type = file
master_agent.channels.c2.capacity = 100000
master_agent.channels.c2.transactionCapacity = 1000

#master_agent hdfssinks
master_agent.sinks.k2.type = hdfs
master_agent.sinks.k2.channel = c2
master_agent.sinks.k2.hdfs.path = hdfs://master1:9000/hdfs
master_agent.sinks.k2.hdfs.filePrefix = test-
master_agent.sinks.k2.hdfs.inUsePrefix = _
master_agent.sinks.k2.hdfs.inUseSuffix = .tmp
master_agent.sinks.k2.hdfs.fileType = DataStream
master_agent.sinks.k2.hdfs.writeFormat = Text
master_agent.sinks.k2.hdfs.batchSize = 1000
master_agent.sinks.k2.hdfs.callTimeout = 6000

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐