Flume JDBC User Guide
JDBC Channel
The events are stored in a persistent storage that’s backed by a database. The JDBC channel currently supports embedded Derby. This is a durable channel that’s ideal for flows where recoverability is important. Required properties are in bold.
| Property Name | Default | Description |
|---|---|---|
type |
— |
The component type name, needs to be |
db.type |
DERBY |
Database vendor, needs to be DERBY. |
driver.class |
org.apache.derby.jdbc.EmbeddedDriver |
Class for vendor’s JDBC driver |
driver.url |
(constructed from other properties) |
JDBC connection URL |
db.username |
"sa" |
User id for db connection |
db.password |
— |
password for db connection |
connection.properties.file |
— |
JDBC Connection property file path |
create.schema |
true |
If true, then creates db schema if not there |
create.index |
true |
Create indexes to speed up lookups |
create.foreignkey |
true |
|
transaction.isolation |
"READ_COMMITTED" |
Isolation level for db session READ_UNCOMMITTED, READ_COMMITTED, SERIALIZABLE, REPEATABLE_READ |
maximum.connections |
10 |
Max connections allowed to db |
maximum.capacity |
0 (unlimited) |
Max number of events in the channel |
sysprop.* |
DB Vendor specific properties |
|
sysprop.user.home |
Home path to store embedded Derby database |
Example for agent named a1:
-
Properties
-
YAML
-
JSON
a1.channels = c1
a1.channels.c1.type = jdbc
a1:
channels:
c1:
type: jdbc
"a1": {
"channels": {
"c1": {
"type": "jdbc"
}
}
}