我正在尝试使用kafka部署一个简单的camel路由,将一个kafka主题消耗的消息路由到另一个主题,在jboss fuse上,但是我收到错误消息“org.apache.camel.camel-core - 2.17.0.redhat-630187 |无消息密钥或分区密钥集“。这是蓝图dsl
中的骆驼路线
<?xml version="1.0" encoding="UTF-8"?>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from id="_from1" uri="kafka:localhost:9092?topic=test1&groupId=1"/>
<to uri="kafka:localhost:9092?topic=test2&groupId=1&serializerClass=org.apache.kafka.common.serialization.StringSerializer"/>
</route>
</camelContext>
</blueprint>
有谁知道如何解决此问题?感谢