我有一个httpsource的水槽。当我启动我的代理时,我会得到以下所示的权限被拒绝错误。
错误org.apache.flume.source.http.HTTPSource:启动HTTPSo $时出错 java.net.SocketException:Permission denied
我不确定拒绝许可是什么以及如何修复它。
我使用的水槽来自另一个帖子,如下所示。
How to setup a HTTP Source for testing Flume setup?
由于
###############################
tier1.sources = http-source
tier1.sinks = local-file-sink
tier1.channels = ch3
# Define / Configure Source (multiport seems to support newer "stuff")
###############################
tier1.sources.http-source.type = org.apache.flume.source.http.HTTPSource
tier1.sources.http-source.channels = ch3
tier1.sources.http-source.port = 81
# Local File Sink
###############################
tier1.sinks.local-file-sink.type = file_roll
tier1.sinks.local-file-sink.channel = ch3
tier1.sinks.local-file-sink.sink.directory = /var/log/flume
tier1.sinks.local-file-sink.rollInterval = 5
# Channels
###############################
tier1.channels.ch3.type = memory
tier1.channels.ch3.capacity = 1000
答案 0 :(得分:0)
好的,因为我使用的是端口81.我将其更改为8989并且有效。
更改
tier1.sources.http-source.port = 81
要
tier1.sources.http-source.port = 8989