【问题标题】:Flume HttpSource Permission DeniedFlume HttpSource 权限被拒绝
【发布时间】: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

【问题讨论】:

    标签: hadoop flume flume-ng


    【解决方案1】:

    好的,因为我使用的是 81 端口。我将其更改为 8989 并且它可以工作。

    改变

    tier1.sources.http-source.port = 81
    

    tier1.sources.http-source.port = 8989
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-30
      • 1970-01-01
      • 2018-07-19
      • 2018-02-05
      • 2015-04-28
      • 2018-02-03
      相关资源
      最近更新 更多