org.apache.camel.camel-core - 2.17.0.redhat-630187 |没有消息密钥或分区密钥集

时间:2018-04-23 07:39:44

标签: apache-kafka apache-camel jbossfuse

我正在尝试使用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&amp;groupId=1"/>
          <to uri="kafka:localhost:9092?topic=test2&amp;groupId=1&amp;serializerClass=org.apache.kafka.common.serialization.StringSerializer"/>
      </route>
    </camelContext>

</blueprint>

有谁知道如何解决此问题?感谢

0 个答案:

没有答案