美文网首页
flume采坑

flume采坑

作者: 忘净空 | 来源:发表于2017-10-30 18:23 被阅读149次

问题1

安装配置kafka ---> flume ---> hdfs报错"responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}}"

flume配置文件如下

agent.sources = kafkaSource
agent.channels = memoryChannel
agent.sinks = hdfsSink
# The channel can be defined as follows.
agent.sources.kafkaSource.channels = memoryChannel
agent.sources.kafkaSource.type=org.apache.flume.source.kafka.KafkaSource
agent.sources.kafkaSource.kafka.bootstrap.servers = slave01:9092,slave02:9092,slave03:9092
agent.sources.kafkaSource.topic=maxwell

#agent.sources.kafkaSource.groupId=flume
agent.sources.kafkaSource.kafka.consumer.timeout.ms=100

agent.channels.memoryChannel.type=memory
agent.channels.memoryChannel.capacity=1000
agent.channels.memoryChannel.transactionCapacity=100


# the sink of hdfs
agent.sinks.hdfsSink.type=hdfs
agent.sinks.hdfsSink.channel = memoryChannel
agent.sinks.hdfsSink.hdfs.path=hdfs://master01:8020/flume
agent.sinks.hdfsSink.hdfs.writeFormat=Text
agent.sinks.hdfsSink.hdfs.fileType=DataStream

讲道理这个配置完成以后,我只要输入如下命令立刻妥妥地跑起来,但是一直报错"responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}}"

flume-ng agent --conf conf --conf-file example.conf  --name kafka   -Dflume.root.logger=INFO,console

解决

参考如下文章:https://stackoverflow.com/questions/42362911/kafka-high-level-consumer-error-code-15/42416232#42416232,我把kafka中的信息删除完后解决问题。

kafka系列之在zookeeper中存储结构参看下图:


kafka系列之在zookeeper中存储结构

相关文章

  • flume采坑

    问题1 安装配置kafka ---> flume ---> hdfs报错"responseBody={error_...

  • Flume坑

    转载:https://jiayu0x.com/2016/12/27/flume-summary/?utm_medi...

  • Universal Link 前端部署采坑记

    Universal Link 前端部署采坑记 Universal Link 前端部署采坑记

  • Flume安装教程

    前段时间学了flume,怕忘记就写点日志总结一下。避免踩第二次坑 。。。 首先是安装flume,简单的说,flum...

  • Flutter携程APP总结

    功能展示 首页实现 搜索页面实现 旅拍页面 DAO 采坑 启动屏 自定义Widget 打包 功能展示 DAO 采坑...

  • 有的坑要早踩

    有的坑要早踩好处才大,因为年轻还可以有多次采坑的时间,总结经验知道为什么采坑,踩到了什么坑,而在我们年轻时,父母总...

  • Flume + Kafka整合

    Flume的安装与综合使用https://www.jianshu.com/p/90e17b80f366 实时日志采...

  • 2019-08-01 疑难杂症之- hive踩坑

    很多时候,你以为你懂了,其实你并没有。采坑指南就是将踩过的坑记住。 1、hive 表新增字段时,采坑 2、hive...

  • Flume01

    Flume架构组成 Flume 负载均衡 Flume Agent内部原理 启动 Flume 监听

  • Flume

    总结 一、Flume的定义 1、flume的优势 2、flume的组成 3、flume的架构 二、 flume部署...

网友评论

      本文标题:flume采坑

      本文链接:https://www.haomeiwen.com/subject/fvdmpxtx.html