PutBigQuery

PutBigQuery

Description:

Unified processor for batch and stream flow files content to a Google BigQuery table via the Storage Write API.The processor is record based so the used schema is driven by the RecordReader. Attributes that are not matched to the target schemaare skipped. Exactly once delivery semantics are achieved via stream offsets. The Storage Write API is more efficient than the older insertAll method because it uses gRPC streaming rather than REST over HTTP

Additional Details…

Tags:

google, google cloud, bq, bigquery

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display Name API Name Default Value Allowable Values Description
GCP Credentials Provider Service GCP Credentials Provider Service Controller Service API:
GCPCredentialsService
Implementation: GCPCredentialsControllerService
The Controller Service used to obtain Google Cloud Platform credentials.
Project ID gcp-project-id Google Cloud Project ID
Supports Expression Language: true (will be evaluated using variable registry only)
Dataset bq.dataset ${bq.dataset} BigQuery dataset name (Note – The dataset must exist in GCP)
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Table Name bq.table.name ${bq.table.name} BigQuery table name
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Record Reader bq.record.reader Controller Service API:
RecordReaderFactory
Implementations: GrokReader
XMLReader
AvroReader
Syslog5424Reader
CEFReader
SyslogReader
JsonTreeReader
CSVReader
ScriptedReader
ParquetReader
JsonPathReader
ReaderLookup
WindowsEventLogReader
Specifies the Controller Service to use for parsing incoming data.
Transfer Type bq.transfer.type STREAM
  • STREAM Use streaming record handling strategy
  • BATCH Use batching record handling strategy
Defines the preferred transfer type streaming or batching
Append Record Count bq.append.record.count 20 The number of records to be appended to the write stream at once. Applicable for both batch and stream types
Number of retries gcp-retry-count 6 How many retry attempts should be made before routing to the failure relationship.
Skip Invalid Rows bq.skip.invalid.rows false Sets whether to insert all valid rows of a request, even if invalid rows exist. If not set the entire insert request will fail if it contains an invalid row.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

Relationships:

Name Description
success FlowFiles are routed to this relationship after a successful Google BigQuery operation.
failure FlowFiles are routed to this relationship if the Google BigQuery operation fails.

Reads Attributes:

None specified.

Writes Attributes:

Name Description
bq.records.count Number of records successfully inserted

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.

See Also:

PutBigQueryBatch, PutBigQueryStreaming

Read more here: Source link