开启Flume-ng报错

输入开启Flume-ng命令后,如下所示,提示RPC client创建失败!不知道如何解决!
 
[root@master conf]# flume-ng agent --conf conf --conf-file AvroHDFS.conf --name a1 -Dflume.root.logger=INFO,console
Info: Including Hadoop libraries found via (/usr/local/hadoop/bin/hadoop) for HDFS access
Info: Including Hive libraries found via (/usr/local/hadoop/hive-2.1.1-bin) for Hive access
Info: Including HCatalog libraries found via (/usr/local/hadoop/hive-2.1.1-bin/hcatalog) for Hive access
+ exec /usr/java/jdk1.8.0_91/bin/java -Xmx20m -Dflume.root.logger=INFO,console -cp 'conf:/usr/local/hadoop/flume-1.7.0-bin/lib/*:/usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/*:/usr/local/hadoop/share/hadoop/common/*:/usr/local/hadoop/share/hadoop/hdfs:/usr/local/hadoop/share/hadoop/hdfs/lib/*:/usr/local/hadoop/share/hadoop/hdfs/*:/usr/local/hadoop/share/hadoop/yarn/lib/*:/usr/local/hadoop/share/hadoop/yarn/*:/usr/local/hadoop/share/hadoop/mapreduce/lib/*:/usr/local/hadoop/share/hadoop/mapreduce/*:/usr/local/hadoop/contrib/capacity-scheduler/*.jar:/usr/local/hadoop/hive-2.1.1-bin/lib/*:/usr/local/hadoop/hive-2.1.1-bin/hcatalog/share/hcatalog/*' -Djava.library.path=:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib org.apache.flume.node.Application --conf-file AvroHDFS.conf --name a1
log4j:ERROR RPC client creation failed! NettyAvroRpcClient { host: master, port: 4141 }: RPC connection error
SLF4J: The following loggers will not work becasue they were created
SLF4J: during the default configuration phase of the underlying logging system.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: org.apache.flume.api.NettyAvroRpcClient
SLF4J: org.apache.avro.ipc.NettyTransceiver
log4j:WARN No appenders could be found for logger (org.apache.flume.lifecycle.LifecycleSupervisor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4 ... onfig for more info.
 
配置文件如下:
a1.sources = r1
a1.channels = c1
a1.sinks = k1

a1.sources.r1.type = avro
a1.sources.r1.channels = c1
a1.sources.r1.bind = 192.168.100.223
a1.sources.r1.port = 4141
a1.sources.r1.ipFilter = false 


a1.channels.c1.type = memory 
a1.channels.c1.capacity = 10000
a1.channels.c1.transactionCapacity = 10000
a1.channels.c1.byteCapacityBufferPercentage = 20
a1.channels.c1.byteCapacity = 800000

a1.sources.r1.interceptors = i1
a1.sources.r1.interceptors.i1.type = com.easeye.adtarget.cloud.trafficStatis.flume.FormatInterceptor$Builder

a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
a1.sinks.k1.hdfs.path =/home/hadoop/flume
a1.sinks.k1.hdfs.filePrefix = %y%m%d_
a1.sinks.k1.hdfs.fileSuffix=.log
#a1.sinks.k1.hdfs.round = true
#a1.sinks.k1.hdfs.roundValue = 10
#a1.sinks.k1.hdfs.roundUnit = second
a1.sinks.k1.hdfs.useLocalTimeStamp = true
a1.sinks.k1.hdfs.fileType=DataStream
a1.sinks.k1.hdfs.writeFormat=Text
a1.sinks.k1.hdfs.rollInterval=0
a1.sinks.k1.hdfs.rollSize=102400000
a1.sinks.k1.hdfs.rollCount=0
a1.sinks.k1.hdfs.idleTimeout=60
a1.sinks.k1.hdfs.batchSize=100
a1.sinks.k1.hdfs.minBlockReplicas=1

jane3von

赞同来自: wangxiaolei

不知什么原因,重装了Flume就可以了~

要回复问题请先登录注册