报错如下:
Exception in thread "main" org.apache.flume.FlumeException: NettyAvroRpcClient { host: xxxx, port: xxxx}: RPC connection error
解决方法:
把bind指定为主机名或ip(非127.0.0.1或0.0.0.0)
实例如下:
# Describe/configure the source
a1.sources.r1.type = avro
a1.sources.r1.channels = c1
a1.sources.r1.bind = hostname/ip #必需为主机名或者是本机ip(不能用127.0.0.1或0.0.0.0)
#否则用其它主机连接传送数据过来时会出现连接拒绝的错误
a1.sources.r1.port = 41418 #绑定的端口
a1.sources.r1.ipFilter = true #是否使用拦截器
a1.sources.r1.ipFilterRules = deny:name:localhost,allow:ip: