CrateDB Bulk Loader
Description
The CrateDB Bulk Loader transform loads data from Apache Hop to CrateDB using two different approaches:
-
the
COPY FROMcommand. -
The CrateDB HTTP endpoint for bulk operations.
CrateDB has no native binary column type. Binary stream fields are written as lowercase hex strings, which can be loaded into a STRING column.
|
|
The CrateDB Bulk Loader is linked to the database type. When the COPY mode is used, it will fetch the JDBC driver from the hop/lib/jdbc folder. |
General Options
| Option | Description |
|---|---|
Transform name |
Name of the transform. |
Target schema |
The name of the target schema to write data to. This is a mandatory field because CrateDB needs to know which of the default schemas write to ( |
Target table |
The name of the target table to write data to. |
Main Options
| Option | Description |
|---|---|
Connection |
Name of the database connection on which the target table resides. |
Use HTTP Endpoint |
Choose the mode to use to load data into CrateDB. Supported options are |
Batch size |
HTTP mode works writing in batch. The number of rows to send in a single batch to CrateDB must be set as there’s no default value. |
Specify database fields |
Specify the database and stream fields mapping |
Stream to file |
Write the current pipeline stream to a file in the local filesystem or in S3 before performing the |
Local folder |
Local folder where to store files that will be used by the As per documentation, CrateDB retrieves files from its nodes filesystem (scheme In the Leave it empty otherwise in other scenarios (i.e.: writing to S3). |
Read from file |
Do not stream the contents of the current pipeline, but perform the |
AWS Authentication
| Option | Description |
|---|---|
Use AWS system variables |
When selected, picks up the |
AWS_ACCESS_KEY_ID |
(if |
AWS_SECRET_ACCESS_KEY |
(if |
HTTP Authentication
At the moment, Hop only supports the Basic and Bearer authentication methods.
| Option | Description |
|---|---|
HTTP Login |
Insert the username for the HTTP authentication |
HTTP password |
Insert the password for the HTTP authentication |
Fields
Map the current stream fields to the CrateDB table’s columns.