apache flume../flume.log拒绝使用spooldir作为源的权限,但对其他源没有问题

esyap4oy  于 2021-06-04  发布在  Flume
关注(0)|答案(1)|浏览(404)

我对使用flume还很陌生,刚刚开始使用cdh4.7.0发行版进行测试。
我正在通过cloudera manager配置flume。
我使用序列生成器作为源设置了一个代理,一切正常,但将源配置为假脱机目录时出错:
log4j:error setfile(null,true)调用失败。java.io.filenotfoundexception:/var/log/flume ng/flume-cmf-flume1-agent-xx.log(权限被拒绝)
什么都没改变,有什么想法吗?
我的.conf:

来源

代理\u pbe2.sources.spldir-src1.type=spooldir
agent_pbe2.sources.spldir-src1.spooldir=/tmp/flume poc

渠道

agent_pbe2.channels.mem-chn1.type=内存
代理\ pbe2.channels.mem-chn1.capacity=1000
代理\ pbe2.channels.mem-chn1.transactioncapacity=100

Flume

agent_pbe2.sinks.hdfs-snk1.type=hdfs
代理\u pbe2.sinks.hdfs-snk1.hdfs.path=hdfs://martehadoop/user/hduser/flume-poc/pbe2

绑定源

代理\ pbe2.sources.spldir-src1.channels=mem-chn1

绑定接收器

代理\ pbe2.sinks.hdfs-snk1.channel=mem-chn1
谢谢!

wlsrxk51

wlsrxk511#

我回答我自己的问题。
问题与用户权限有关。flume服务使用的用户必须能够访问代理中涉及的所有资源。
干杯!

相关问题