camel-hbase-kafka-connector source configuration

Connector Description: Reading and write from/to an HBase store (Hadoop database).

When using camel-hbase-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:

<dependency>
  <groupId>org.apache.camel.kafkaconnector</groupId>
  <artifactId>camel-hbase-kafka-connector</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel Kafka connector version -->
</dependency>

To use this source connector in Kafka connect you’ll need to set the following connector.class

connector.class=org.apache.camel.kafkaconnector.hbase.CamelHbaseSourceConnector

The camel-hbase source connector supports 19 options, which are listed below.

Name Description Default Priority

camel.source.path.tableName

Required The name of the table.

HIGH

camel.source.endpoint.cellMappingStrategyFactory

To use a custom CellMappingStrategyFactory that is responsible for mapping cells.

MEDIUM

camel.source.endpoint.filters

A list of filters to use.

MEDIUM

camel.source.endpoint.mappingStrategyClassName

The class name of a custom mapping strategy implementation.

MEDIUM

camel.source.endpoint.mappingStrategyName

The strategy to use for mapping Camel messages to HBase columns. Supported values: header, or body. One of: [header] [body].

Enum values:

  • header

  • body

MEDIUM

camel.source.endpoint.rowMapping

To map the key/values from the Map to a HBaseRow. The following keys is supported: rowId - The id of the row. This has limited use as the row usually changes per Exchange. rowType - The type to covert row id to. Supported operations: CamelHBaseScan. family - The column family. Supports a number suffix for referring to more than one columns. qualifier - The column qualifier. Supports a number suffix for referring to more than one columns. value - The value. Supports a number suffix for referring to more than one columns valueType - The value type. Supports a number suffix for referring to more than one columns. Supported operations: CamelHBaseGet, and CamelHBaseScan.

MEDIUM

camel.source.endpoint.rowModel

An instance of org.apache.camel.component.hbase.model.HBaseRow which describes how each row should be modeled.

MEDIUM

camel.source.endpoint.userGroupInformation

Defines privileges to communicate with HBase such as using kerberos.

MEDIUM

camel.source.endpoint.bridgeErrorHandler

Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.

false

MEDIUM

camel.source.endpoint.maxMessagesPerPoll

Gets the maximum number of messages as a limit to poll at each polling. Is default unlimited, but use 0 or negative number to disable it as unlimited.

MEDIUM

camel.source.endpoint.operation

The HBase operation to perform One of: [CamelHBasePut] [CamelHBaseGet] [CamelHBaseScan] [CamelHBaseDelete].

Enum values:

  • CamelHBasePut

  • CamelHBaseGet

  • CamelHBaseScan

  • CamelHBaseDelete

MEDIUM

camel.source.endpoint.remove

If the option is true, Camel HBase Consumer will remove the rows which it processes.

true

MEDIUM

camel.source.endpoint.removeHandler

To use a custom HBaseRemoveHandler that is executed when a row is to be removed.

MEDIUM

camel.source.endpoint.exceptionHandler

To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.

MEDIUM

camel.source.endpoint.exchangePattern

Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut].

Enum values:

  • InOnly

  • InOut

  • InOptionalOut

MEDIUM

camel.component.hbase.poolMaxSize

Maximum number of references to keep for each table in the HTable pool. The default value is 10.

10

MEDIUM

camel.component.hbase.bridgeErrorHandler

Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.

false

MEDIUM

camel.component.hbase.autowiredEnabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

MEDIUM

camel.component.hbase.configuration

To use the shared configuration.

MEDIUM

The camel-hbase source connector has no converters out of the box.

The camel-hbase source connector has no transforms out of the box.

The camel-hbase source connector has no aggregation strategies out of the box.