Setting up Data Movement gateway
Setting up the Data Movement gateway involves procedures that need to be performed both inAdministration and on the Data Movement gateway server.
- All CLI commands must be run on the Data Movement gateway server.
- Installation (RPM) and service commands must be run as sudo or as root.
-
Data Movement gateway procedures that need to be performed in Administration require tenant admin permission.
See also: Considerations when associating the data gateway with a space
Stage one: Download the Data Movement gateway
-
To access data gateways, select Administration from the launcher menu (), and then Data gateways.
All existing data gateways will be listed in a table showing basic information about each gateway.
-
Click the Deploy toolbar button.
The Deploy Data Gateway dialog opens.
-
Select Data Gateway - Data Movement, accept the Qlik Customer Agreement, and click Download.
The Data Movement gateway RPM (qlik-data-gateway-data-movement.rpm) will be downloaded to your machine.
Stage two: Install and set up the Data Movement gateway
This stage involves installing the Data Movement gateway, setting the Qlik Cloud URL, and generating a registration key. You will need to copy the key to the Data Movement gateway settings in Administration (in stage three below). The key is used to establish an authenticated connection between the Data Movement gateway and the Qlik Cloud tenant.
-
Once the download is complete, copy the RPM file to the Linux machine where you want to install the Data Movement gateway. Make sure the machine is behind your firewall, and can communicate with your data sources and Qlik Cloud.
-
Open a shell prompt and change the working directory to the directory containing the RPM:
Example:
/qlik/GatewayRPM/
-
Run the following command: to install the Data Movement gateway.
Syntax:
QLIK_CUSTOMER_AGREEMENT_ACCEPT=yes rpm -ivh gateway-rpm
Example:
sudo QLIK_CUSTOMER_AGREEMENT_ACCEPT=yes rpm -ivh qlik-data-gateway-data-movement.rpm
You can view the Qlik Customer Agreement here: https://www.qlik.com/us/-/media/files/legal/license-agreements/qlik/qlik-customer-agreement-english.pdf
-
After the installation completes, change the working directory to:
/opt/qlik/gateway/movement/bin
Then, run the following commands:
Setting the Qlik Cloud tenant and a proxy server
Information noteIf you need to connect to your cloud data warehouse or storage via a proxy, make sure the relevant options are turned on in the landing settings:
- Use proxy to connect to cloud data warehouse
- Use proxy to connect to storage
If neither of these options are turned on, the proxy connection will be to Qlik Cloud only.
For more information on these options, see Landing data from data sources.
Run the following command to set the Qlik Cloud tenant URL and, optionally, your proxy server URL:
Command for setting the Qlik Cloud tenant URL without a proxy server:
Syntax:
./agentctl qcs set_config --tenant_url URL
Example:
./agentctl qcs set_config --tenant_url mytenant.us.qlikcloud.com
Command for setting the Qlik Cloud tenant URL and the proxy server URL:
Syntax:
./agentctl qcs set_config --tenant_url your-qlik-cloud-tenant-url --proxy_url https|http://host:port --proxy_username username --proxy_password password
Example:
./agentctl qcs set_config --tenant_url mytenant.us.qlikcloud.com --proxy_url https://myproxy:1212 --proxy_username admin --proxy_password f56weqs@
See also: Managing the Data Movement gateway server
Setting the CA bundle
The CA bundle authenticates the identity of the Qlik Cloud tenant, thereby ensuring a trusted connection.
Who needs to set the CA bundle?
The CA bundle only needs to be set if you are:
- A Qlik Cloud Government customer
- A Qlik Cloud commercial customer using a security appliance that acts as a proxy and replaces the certificate information received from the Internet with its own CA root certificates
Which bundle should I use?
Customers should either use the Qlik CA bundle or bring their own CA bundle, as follows:
-
Qlik provides the CA bundle: Should be used by Qlik Cloud Government customers with a standard environment. A standard environment is an environment that does not have a security appliance that acts as a proxy and replaces the certificate information received from the Internet with its own CA root certificates.
Information noteYou can rename the CA bundle file, but make sure that it has a .pem extension (for example, qlikcerts.pem). Then, run the command(s) described below. - Customers bring their own CA bundle: Should be used if the customer's environment is using a security appliance that acts as a proxy and replaces the certificate information received from the Internet with its own CA root certificates. If those certificates are self-signed, then in addition to the command for setting the CA bundle, you also need to run the command for allowing the CA bundle. Both of these commands are described below. This applies to both Qlik Cloud Government customers and Qlik Cloud commercial customers alike.
Command for setting the CA bundle
Run the following command to set the CA certificate bundle:
Syntax:
./agentctl qcs set_config --ca_bundle_path path-to-ca-bundle-file
Example:
./agentctl qcs set_config --ca_bundle_path /etc/ssl/certs/cacerts.pem
Command for allowing the CA bundle
Some environments use a security appliance that acts as a proxy and replaces the certificate information received from the Internet with its own CA root certificates. This command only needs to be run if the security appliance itself uses a self-signed certificate. In such a case, the CA bundle might not be trusted unless you run the following command:
./agentctl qcs set_config --ca_bundle_allow_invalid_certs true
Information noteIf you are not sure whether your environment is using such a security appliance, please contact your IT administrator.Generating and showing the registration key
The key is used to establish an authenticated connection between the Data Movement gateway and the Qlik Cloud tenant.
Run the following command to generate and show the key:
./agentctl qcs get_registration
The key is shown:
-
Copy the entire key as shown in the example above. You will need to paste it into Administration in the next stage.
Stage three: Return to Administration and register the Data Movement gateway
-
To access data gateways, select Administration from the launcher menu (), and then Data gateways.
All existing data gateways will be listed in a table showing basic information about each gateway.
-
Click Create.
The Create data gateway dialog opens.
-
Specify a name for the Data Movement gateway.
-
Optionally, provide a description for the Data Movement gateway.
-
From the Gateway type drop-down list, select Data Movement.
-
From the Associated space drop-down list, select a space. See also Considerations when associating the data gateway with a space.
-
Paste the registration key you generated earlier into the Key field.
-
Click Create.
The Data Movement gateway is added enabled to the Data gateways list.
Stage four: Start the Data Movement gateway service on the Data Movement gateway server
-
Run the following command:
sudo systemctl start repagent
-
Check that the service has started by running the following command:
sudo systemctl status repagent
The status should be as follows:
Active: active (running) since <timestamp> ago
Stage five: Use Data Movement gateway data sources in your data projects
-
To access data gateways, select Administration from the launcher menu (), and then Data gateways.
All existing data gateways will be listed in a table showing basic information about each gateway.
-
Refresh your browser to make sure that the Data gateways table is up-to-date.
-
Locate your gateway in the Data gateways and verify that its State is “Connected”.
Once you have verified in Administration that the Data Movement gateway is "Connected", you can use it to access your data sources and supported targets.
For more information, see Setting up connections to data sources and Setting up connections to targets.
Working with Data Movement gateway
When working with Qlik Data Gateway - Data Movement, the flow should be as follows:
- Install one or more Data Movement gateways (depending on your use case) and configure connectivity to your Qlik Cloud tenant, as described above.
- Install the driver required for your data source and fulfill any other prerequisites, as described in Setting up connections to data sources. The driver might need to be installed on a Data Movement gateway deployed close to your source, depending on your use case.
- Install the driver required for your target platform and fulfill any other prerequisites, as described in Setting up connections to targets. The driver might also need to be installed on a Data Movement gateway deployed close to your target, depending on your use case.
- Configure the connector for your data source, as described in Setting up connections to data sources.
- Configure the connector for your target platform, as described in Setting up connections to targets.
- Create a project and run the required tasks, as described in Creating a data pipeline.
Considerations when associating the data gateway with a space
When associating the Data Movement gateway with a space (see Step 3 above), you should be aware of the following:
- Data gateways can be created in Data Spaces only.
- To be able to create a connection in one space that uses a data gateway from another space, you must have the Can consume data role in the data gateway space.
-
To be able to create a data gateway, the user needs to be a space owner or have the Can manage role. In addition, the user needs Professional or Full User entitlement. Assign Professional entitlement manually or by turning on Enable dynamic assignment of professional users in Administration.
For more information on user entitlements and dynamic assignment of professional access, see Managing user entitlements
- Data gateways can be associated with a single space only.