【发布时间】:2015-04-10 15:38:27
【问题描述】:
我有一个带有 httpsource 的水槽。当我启动我的代理时,出现如下所示的权限被拒绝错误。
错误 org.apache.flume.source.http.HTTPSource: 启动 HTTPSo$ 时出错 java.net.SocketException:权限被拒绝
我不确定是什么导致了权限被拒绝以及如何解决。
我使用的水槽取自另一个帖子,如下所示。
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
【问题讨论】: