Documentation

Documentation

  • HVR 5 Documentation
  • Introduction
  • Installing and Upgrading HVR
  • Configuring HVR
  • Location Class Requirements
    • Requirements for Azure Blob FS
    • Requirements for Azure Data Lake Storage Gen2
    • Requirements for Azure Data Lake Store
    • Requirements for Azure SQL Database
    • Requirements for Azure Synapse Analytics
    • Requirements for BigQuery
    • Requirements for DB2 for i
    • Requirements for DB2 for Linux, UNIX and Windows
    • Requirements for DB2 for z/OS
    • Requirements for FTP, SFTP, and SharePoint WebDAV
    • Requirements for Google Cloud Storage
    • Requirements for Greenplum
    • Requirements for HANA
    • Requirements for HDFS
    • Requirements for Hive ACID
    • Requirements for Ingres and Vector
    • Requirements for Kafka
    • Requirements for MySQL and MariaDB
    • Requirements for Oracle
    • Requirements for PostgreSQL
    • Requirements for Redshift
    • Requirements for S3
    • Requirements for Salesforce
    • Requirements for SapXForm
    • Requirements for SingleStore
    • Requirements for Snowflake
    • Requirements for SQL Server
    • Requirements for Sybase ASE
    • Requirements for Teradata
  • Actions
  • Commands
  • HVR Insights
  • Advanced Operations
  • Internal HVR Objects
  • Capabilities
  • Quick Start Guides
  • FAQ
  • Release Notes
RSS
Release notes RSS
Fivetran Documentation
Fivetran Documentation
  • Support
  • Sign In
Edit on GitHub

Requirements for SingleStorelink

Since v5.7.5/4

CaptureHubIntegrate

This section describes the requirements, access privileges, and other features of HVR when using SingleStore (formerly MemSQL) for replication.

For information about compatibility and supported versions of SingleStore with HVR platforms, see Platform Compatibility Matrix.

For the Capabilities supported by HVR on SingleStore, see Capabilities for SingleStore.

For information about the supported data types and mapping of data types in source DBMS to the corresponding data types in target DBMS or file format, see Data Type Mapping.

Location Connectionlink

This section lists and describes the connection details required for creating SingleStore location in HVR. HVR uses MariaDB's native Connector/C interface to connect, read, and write data to SingleStore. HVR connects to the SingleStore server using the TCP protocol.

SC-Hvr-Location-SingleStore.png

FieldDescription
NodeThe hostname or IP-address of the machine on which the SingleStore server is running.
Example: 192.168.127.129
PortThe TCP port on which the SingleStore server is expecting connections.
Example: 3306
DatabaseThe name of the SingleStore database.
Example: mytestdb
UserThe username to connect HVR to SingleStore Database.
Example: hvruser
PasswordThe password of the User to connect HVR to SingleStore Database.

SingleStore Server Time Zonelink

To use the timestamp data type in SingleStore database, the SingleStore server's time zone must be set to UTC or +00:00 using the default_time_zone configuration parameter. For more information about setting the time zone, refer to article Setting the Time Zone in SingleStore documentation.

For example, to set the time zone to UTC on a host, run the command:

sdb-admin update-config --key default_time_zone --value "+00:00" --all
content_copy

While updating a time zone on a host, it is required to update it identically on all hosts in the cluster and then the cluster must be restarted.

Integrate and Refresh Targetlink

HVR supports integrating changes into SingleStore location. This section describes the configuration requirements for integrating changes (using Integrate and refresh) into SingleStore location. For the list of supported SingleStore versions into which HVR can integrate changes, see Integrate changes into location in Capabilities.

HVR uses MariaDB's native Connector/C interface to write data into SingleStore during continuous Integrate and row-wise Refresh. For the methods used during Integrate with /Burst and Bulk Refresh, see section Burst Integrate and Bulk Refresh below.

Grants for Integrate and Refresh Targetlink

To integrate changes into SingleStore location, the database User requires the following grants:

  • Permission to read and change replicated tables.

    grant select, insert, update, delete on tbl to hvruser
    content_copy
  • Permission to create and drop HVR state tables.

Prerequisites for Bulk Loadlink

The two options available to use bulk load during Refresh or Integrate in SingleStore are:

  1. Direct loading by the SingleStore server. The following conditions should be satisfied to use this option:
    • The User should have FILE permission.
    • The system variable (of SingleStore server) secure_file_priv should be set to "" (blank).
  2. Initial loading by the SingleStore client followed by SingleStore server. The following condition should be satisfied to use this option:
    • The system variable (of SingleStore client and server) local_infile should be enabled.

Burst Integrate and Bulk Refreshlink

While HVR Integrate is running with parameter /Burst and Bulk Refresh, HVR can stream data into a target database straight over the network into a bulk loading interface specific for each DBMS (e.g. direct-path-load in Oracle), or else HVR puts data into a temporary directory (‘staging file') before loading data into a target database.

For best performance, HVR performs Integrate with /Burst and Bulk Refresh into a SingleStore location using staging files. HVR implements Integrate with /Burst and Bulk Refresh (with file staging) into SingleStore as follows:

Server File Staging - Direct Loading

  1. HVR first stages data to a server local staging file (file write)
  2. HVR then uses MySQL command 'load data' to load the data into SingleStore target tables

Client File Staging - Initial Loading

  1. HVR first stages data to a client local staging file (file write)
  2. HVR then uses MySQL command 'load data local' to ingest the data into SingleStore target tables

To perform Integrate with parameter /Burst and Bulk Refresh, define action LocationProperties on SingleStore location with the following parameters:

  • /StagingDirectoryHvr: a directory local to the SingleStore server which can be written to by the HVR user from the machine that HVR uses to connect to the DBMS.
  • /StagingDirectoryDb: the location from where SingleStore will access the temporary staging files.

You can either define both parameters (/StagingDirectoryHvr and /StagingDirectoryDb) or define only one parameter (/StagingDirectoryHvr).

Compare and Refresh Sourcelink

HVR supports compare and refresh from (read from) SingleStore location. This section describes the configuration requirements for performing compare and refresh from SingleStore (source) location.

Grants for Compare and Refresh Sourcelink

To perform HVR Compare or HVR Refresh (read from SingleStore), the User requires the following grant to read the replicated tables:

grant select on tbl to hvruser
content_copy

Questions?

We're always happy to help with any other questions you might have! Send us an email.

    Thanks for your feedback!
    Was this page helpful?