143.3. 配置组件

HBase 组件可以提供一个自定义 HBaseConfiguration 对象作为属性,或者可以根据 classpath 上找到的 HBase 相关资源自行创建 HBase 配置对象。

    <bean id="hbase" class="org.apache.camel.component.hbase.HBaseComponent">
        <property name="configuration" ref="config"/>
    </bean>

如果没有向组件提供配置对象,则组件将创建一个。创建的配置将搜索 hbase-site.xml 文件的类路径,该文件从中提取配置。您可以在以下位置找到有关如何配置 HBase 客户端的更多信息: HBase 客户端配置和依赖项