0

我有一个带有 httpsource 的水槽。当我启动我的代理时,我收到如下所示的权限被拒绝错误。

错误 org.apache.flume.source.http.HTTPSource:启动 HTTPSo$ java.net.SocketException 时出错:权限被拒绝

我不确定是什么被拒绝以及如何解决它。

我使用的水槽取自另一篇文章,如下所示。

如何设置 HTTP 源以测试 Flume 设置?

谢谢

###############################
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
4

1 回答 1

0

好的,因为我使用的是 81 端口。我将其更改为 8989 并且它有效。

改变

tier1.sources.http-source.port = 81

tier1.sources.http-source.port = 8989
于 2015-04-10T17:05:17.640 回答