想尝试多个agent来进行传输数据其中的一个配置文件如下:

al.sources = r1
al.sinks = k1
al.channels = c1

al.sources.r1.type = avro
al.sources.r1.channels = c1
al.sources.r1.bind = 0.0.0.0
al.sources.r1.port = 4141

al.sinks.k1.type = logger

al.channels.c1.type = memory
al.channels.c1.capacity = 1000
al.channels.c1.transactionCapacity = 100

al.sources.r1.channels = c1
al.sinks.k1.channel = c1

然后用命令执行:

bin/flume-ng agent -c conf -f conf/spool-logger2.conf -n al -Dflume.root.logger=INFO,console

却发现一直报错,部分错如下 :

2018-09-09T19:11:03,230 INFO [lifecycleSupervisor-1-0] org.apache.flume.node.PollingPropertiesFileConfigurationProvider - Configuration provider starting
2018-09-09T19:11:03,265 INFO [conf-file-poller-0] org.apache.flume.node.PollingPropertiesFileConfigurationProvider - Reloading configuration file:conf/spool-logger.conf
2018-09-09T19:11:03,292 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Added sinks: k1 Agent: a1
2018-09-09T19:11:03,294 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Added sinks: k1 Agent: al
2018-09-09T19:11:03,294 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Processing:k1
2018-09-09T19:11:03,295 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Processing:k1
2018-09-09T19:11:03,295 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Processing:k1
2018-09-09T19:11:03,296 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Processing:k1
2018-09-09T19:11:03,296 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Processing:k1
2018-09-09T19:11:03,348 WARN [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Agent configuration for 'al' does not contain any channels. Marking it as invalid.
2018-09-09T19:11:03,354 WARN [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Agent configuration invalid for agent 'al'. It will be removed.
2018-09-09T19:11:03,355 INFO [conf-file-poller-0] org.apache.flume.conf.FlumeConfiguration - Post-validation flume configuration contains configuration for agents: [a1]
18-09-09T19:11:03,356 WARN [conf-file-poller-0] org.apache.flume.node.AbstractConfiguratio▽Provider - No configuration found for this host:al
2018-09-09T19:11:03,386 INFO [conf-file-poller-0] org.apache.flume.node.Application - Starting new configuration:{ sourceRunners:{} sinkRunners:{} channels:{} }

重点在于No configuration found for this host:al

这个意思是配置文件没有al这个名字,但是我反复看了我的配置文件,我发现我的al没有错呀,所以一直没有改

一直到后来,我尝试把整个文件复制出来,把全部的al全部在改成al然后在尝试执行命令,果然成功了。

这个结果真是令人抓狂因为英文的al和英文a+数字1很像,所以一直以为是对的

所以最后就是把al拿出来统一改一遍应该就不会错了。

No configuration found for this host:al的更多相关文章

  1. 安装SQL2008 提示 创建usersettings/microsoft.sqlserver.configuration.landingpage.properties.se

    System.Configuration.ConfigurationErrorsException: 创建 userSettings/Microsoft.SqlServer.Configuration ...

  2. 安装SQL2008的时候 出现System.Configuration.ConfigurationErrorsException: 创建 userSettings/Microsoft.SqlServe

    System.Configuration.ConfigurationErrorsException: 创建 userSettings/Microsoft.SqlServer.Configuration ...

  3. 关于haproxy hdr_reg(host) 的一些解释

    I've recently taken over an environment using HAProxy, and I'm attempting to learn the config and wh ...

  4. 创建 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 的配置节处理程序时出错: 未能加载文件或程序集“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统没找到指定的文件

    创建 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 的配置节处理程序时出错: 未能加载文 ...

  5. Configuring SSL for SAP Host Agent on UNIX

    https://help.sap.com/viewer/141cbf7f183242b0ad0964a5195b24e7/114/en-US/8d12f7b9244b44219bd14d619d3a2 ...

  6. asp.net core 系列之Configuration

    在ASP.NET Core中的App configuration 是通过configuration providers基于key-value对建立的.Configuration providers读取 ...

  7. 微软Azure配置中心 App Configuration (一):轻松集成到Asp.Net Core

    写在前面 在日常开发中,我这边比较熟悉的配置中心有,携程Apollo,阿里Nacos(配置中心,服务治理一体) 之前文章: Asp.Net Core与携程阿波罗(Apollo)的第一次亲密接触 总体来 ...

  8. 微软Azure配置中心 App Configuration (二):Feature Flag 功能开关特性

    写在前面 Web服务开发过程中我们经常有这样的需求: 某些功能我必须我修改了配置才启用,比如新用户注册送券等: 某个功能需到特定的时间才启用,过后就失效,比如春节活动等: 某些功能,我想先对10%的用 ...

  9. 微软Azure配置中心 App Configuration (三):配置的动态更新

    写在前面 我在前文: <微软Azure配置中心 App Configuration (一):轻松集成到Asp.Net Core>已经介绍了Asp.net Core怎么轻易的接入azure ...

随机推荐

  1. Android应用开发详解

    目录结构 1.Android概述 2.Android开发基础 未完待续……

  2. Spring Freamwork 开发初体验

    工具 eclipse 版本:Neon.3 Release (4.6.3) Spring Freamwork 版本:4.0.4.RELEASE 下载地址:http://repo.springsource ...

  3. Latex 中cite的使用

    (一).设置上标显示的命令 可以在引言区增加类似如下的重定义命令:   \newcommand{\upcitep}[1]{\textsuperscript{\textsuperscript{\cite ...

  4. C# winform 跨线程修改界面

    我们可以使用invoke和bengininvoke invoke同步执行一个委托 begininvoke异步执行一个委托

  5. 亲测可用:SecureCRT 7 注册码/序列号

    Name: ygeR Company:TEAM ZWT SerialNumber:03-77-119256 License Key: ABH2MJ 9YVAC5 Z17QF7 4ZAS7Z ABGYJ ...

  6. em px 换算在线工具

    网址: http://pxtoem.com/#help http://www.runoob.com/tags/ref-pxtoemconversion.html

  7. 108. Convert Sorted Array to Binary Search Tree (building tree with resursion)

    Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Fo ...

  8. python入门21 pip安装、更新、卸载第三方包,验证包是否安装成功;pip自身更新升级

    1 安装第三方包 python3自带安装工具pip,且在安装时勾选添加path也会将pip.exe所在目录加入到环境变量(python安装目录\Scripts). 因此安装第三方软件特别简单,打开命令 ...

  9. csu 1965

    Description You are a boss who has N employers. One day, you have a message and you want to tell it ...

  10. linux学习(一)开始

    第一关 用u盘安装ubuntu, 大部份工作制作的安装U盘会失败,使用Win32DiskImager就行了,这个工具需要手动填写完整iso路径. 第二个问题 装完后发现乱码,连英文都乱码,不知道原因, ...