Requirements for SingleStore
Since v5.7.5/4
| Capture | Hub | Integrate |
|---|---|---|
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 .
For the supported by HVR on SingleStore, see .
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 .
Location Connection
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.

| Field | Description |
|---|---|
| Node | The hostname or IP-address of the machine on which the SingleStore server is running. Example: 192.168.127.129 |
| Port | The TCP port on which the SingleStore server is expecting connections. Example: 3306 |
| Database | The name of the SingleStore database. Example: mytestdb |
| User | The username to connect HVR to SingleStore Database. Example: hvruser |
| Password | The password of the User to connect HVR to SingleStore Database. |
SingleStore Server Time Zone
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 configuration parameter. For more information about setting the time zone, refer to article in .
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_copyWhile 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 Target
HVR supports integrating changes into SingleStore location. This section describes the configuration requirements for integrating changes (using and ) into SingleStore location. For the list of supported SingleStore versions into which HVR can integrate changes, see in .
HVR uses MariaDB's native Connector/C interface to write data into SingleStore during continuous and row-wise . For the methods used during with /Burst and Bulk , see section below.
Grants for Integrate and Refresh Target
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 hvrusercontent_copyPermission to create and drop HVR state tables.
Prerequisites for Bulk Load
The two options available to use bulk load during or in SingleStore are:
- 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).
- 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 Refresh
While is running with parameter /Burst and Bulk , 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 with /Burst and Bulk into a SingleStore location using staging files. HVR implements with /Burst and Bulk (with file staging) into SingleStore as follows:
Server File Staging - Direct Loading
- HVR first stages data to a server local staging file (file write)
- HVR then uses MySQL command 'load data' to load the data into SingleStore target tables
Client File Staging - Initial Loading
- HVR first stages data to a client local staging file (file write)
- HVR then uses MySQL command 'load data local' to ingest the data into SingleStore target tables
To perform with parameter /Burst and Bulk , define action 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 Source
HVR supports and from (read from) SingleStore location. This section describes the configuration requirements for performing and from SingleStore (source) location.
Grants for Compare and Refresh Source
To perform or (read from SingleStore), the User requires the following grant to read the replicated tables:
grant select on tbl to hvruser
content_copy
Comments
0 comments
Please sign in to leave a comment.