kafka版本为0.7.2,flume版本为1.5.0,flume + kafka插件:https://github.com/baniuyao/flume-kafka
错误信息:
2014-08-20 18:55:51,755(conf-file-poller-0)[错误 - org.apache.flume.node.PollingPropertiesFileConfigurationProvider $ FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:149)]未处理的错误 java.lang.NoSuchMethodError:scala.math.LowPriorityOrderingImplicits.ordered()Lscala / math / Ordering; at kafka.producer.ZKBrokerPartitionInfo $$ anonfun $ kafka $ producer $ ZKBrokerPartitionInfo $$ getZKTopicPartitionInfo $ 1.apply(ZKBrokerPartitionInfo.scala:172)
水槽配置:
agent_log.sources = r1
agent_log.sinks = kafka
agent_log.channels = c1
agent_log.sources.r1.type = exec
agent_log.sources.r1.channels = c1
agent_log.sources.r1.command = tail -f /var/log/test.log
agent_log.channels.c1.type = memory
agent_log.channels.c1.capacity = 1000
agent_log.channels.c1.trasactionCapacity = 100
agent_log.sinks.kafka.type = com.vipshop.flume.sink.kafka.KafkaSink
agent_log.sinks.kafka.channel = c1
agent_log.sinks.kafka.zk.connect = XXXX:2181
agent_log.sinks.kafka.topic = my-replicated-topic
agent_log.sinks.kafka.batchsize = 200
agent_log.sinks.kafka.producer.type = async
agent_log.sinks.kafka.serializer.class = kafka.serializer.StringEncoder
可能是什么错误?谢谢
答案 0 :(得分:0)
scala.math.LowPriorityOrderingImplicits.ordered()
也许您需要导入Scala标准库并将其放在Flume lib目录中。