Azure Marketplace Edition
Version 24.3.9110
Version 24.3.9110
Azure Marketplace Edition
The Azure Marketplace Edition of CData Sync is a Microsoft Windows virtual machine (VM) with Sync preconfigured and ready to run, with little additional configuration necessary. This offering is available in the Azure Marketplace by searching for CData Sync.
The following sections explain how to create your Sync VM, access Sync data from your browser, and manage your VM.
Launching the CData Sync Instance
-
Click Get It Now in the left pane of the Cloud Data Pipeline (CData Sync) page in the marketplace.
-
In the Create this app in Azure dialog box, select the Sync edition that you want from the Software plan list.
-
CData CData Sync Professional: This plan provides ten connections.
-
CData CData Sync Enterprise: This plan provides twenty connections.
-
CData Sync (BYOL): This option enables you to build your own license if the first two options do not meet your requirements. When you choose this option, you need to contact the CData Sales Team:target=”_blank”} to purchase a separate license.
-
-
Click Continue to open the CData Sync page on the Microsoft Azure website.
-
Click Create next to your selected edition in the Plan drop-down list to create your VM.
-
Create a secure shell (SSH) key-pair to connect directly to the VM, and make any additional changes, as necessary.
-
Click Review + Create to complete the process.
Accessing CData Sync from Your Browser
After you create your Sync virtual instance, that instance is available under Virtual Machines in the Azure portal. When your virtual machine (VM) starts up, follow these steps:
-
Locate and copy the public IP address. Then, include that address in a URL, as shown below, to access Sync in your browser.
https://PublicIPAddress
-
Log in with the following credentials:
-
User: The default username is admin.
-
Password: The password is the VM name prefixed with Sync24:. For example, if the VM name is MyCDataSync, the initial password to access Sync is Sync24:MyCDataSync. After you log in, you can change the password for the admin user from the upper right of the browser.
-
Now, follow the instructions in Creating Connections to create your connections and manage your jobs.
Managing Your Virtual Machine (VM)
The CData Sync offering from Azure Marketplace works immediately, without additional configuration. However, advanced users can customize Sync to their preferences.
Accessing the Instance from a Secure Shell (SSH)
Connecting to your Azure Sync instance via SSH is useful for advanced configuration of the service. The Sync instance is based on a standard Ubuntu 22 virtual machine (VM), and the main user is ubuntu. You can connect to the instance via SSH by using the key pair that you select when you launch the instance, as shown below:
ssh -i MyKeyPair.pem ubuntu@PublicIPAddress
Controlling the CData Sync Service
Sync is run as a systemd service (rather than being run in-process) in an Azure VM deployment. The service definition file is available in the following location:
etc/systemd/system/sync.service
You should use the following systemd commands to stop, start, and restart Sync:
sudo systemctl restart sync
sudo systemctl stop sync
sudo systemctl start sync
Note: Before you make any changes to the Sync application, you should stop the service first.
Installation Directory
All the Sync configuration and application data resides in the application directory. The default application directory (_ApplicationDirectory_
) is shown below:
/opt/sync
You can configure the application directory’s path in the sync.properties file, as described in Configuring the Application Directory.
db Folder
The db
folder contains the database files for the default Derby database. Note that you can configure the application database to use an external database, as described in Application Database.
libs Folder
The libs
folder is where the application reads external resources, like drivers for connectors that require an external driver. Place JAR files in this folder and restart Sync to enable the application to read these resources.
Configuring the Application Directory
You can configure the _ApplicationDirectory_
location in the sync.properties file, which is located next to the sync.jar file.
To configure _ApplicationDirectory_
to a non-default location:
-
Locate the following snippet within the sync.properties file:
cdata.app.directory =
-
Add the path to the new location for
_ApplicationDirectory_
, as shown in this example:cdata.app.directory=/mnt/shared/sync
Application Database
By default, Sync uses a Derby database for connection, jobs, application settings, and general application logs. This Derby database is in the db
folder of the application directory, as described in the previous section.
You can configure Sync to use an external database like MySQL. As with the application directory, you configure the application database in the sync.properties file.
To configure the application database:
-
Locate the following snippet in the sync.properties file:
cdata.app.db=
-
Set the connection string to the target database that you want, as shown in this example:
cdata.app.db=jdbc:cdata:mysql:Server=MySQLServer; Port=3306;Database=mysql;User=User;Password=Password;useconnectionpooling=true
-
Restart the Sync service so that the changes in the previous steps take effect.
Ports and SSL
By default, Sync listens for SSL connections (HTTPS) on port 8443. The application cannot bind to the default HTTPS port (443) because of permissions restrictions. Therefore, an iptables rule redirects traffic from port 443 to port 8443. No further action is required for standard HTTPS traffic to reach the Sync web server.
Sync VMs include a self-signed certificate for use when it is hosting an SSL server. If the SSL server needs to be hosted by using a certificate signed by a certificate authority (CA), then you should contact the CA directly to obtain a certificate.
If you want to add a plaintext/non-SSL port (for example, HTTP instead of HTTPS), you need to edit the sync.properties file to enable the plaintext listener. Because of permissions restrictions, the listener cannot bind directly to port 80. Therefore, it is established on port 8181, and an iptables rule must be established to forward traffic from port 80 to port 8181, as follows:
-
Stop the Sync service by submitting this command:
sudo systemctl stop sync
-
Locate the http.port snippet in the sync.properties file:
cdata.http.port=
-
Set the port to 8181 and save the changes.
-
Create a new iptables rule, as shown below, to forward traffic from port 80 to port 8181:
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8181 /usr/libexec/iptables/iptables.init save
-
Restart the Sync service so that the changes in the previous steps take effect.
Upgrading
Upgrading Sync requires launching a new instance of the latest Sync VM. Before launching the new instance, you should copy data from the old instance so that the application configuration is preserved in the new instance.
Sync includes a migration tool that enables you to export and import the configured connections and jobs easily in the application.
To use the migration tool:
-
Navigate to the Migration tab on the Settings page.
-
Click Export to export all settings (connections, jobs, users, and history) to a ZIP file.
-
Import the configuration settings from the same Migration tab into the new instance.
-
Click Import.
-
Navigate to the ZIP file that you created in step 2.
Adding a New Connector
You can add new connectors through the UI by following the steps outlined in Connections. However, you might be required to update or add the connector manually to your instance by following these steps:
-
Use SSH to navigate to your VM.
-
Stop the Jetty service by submitting this command:
sudo systemctl stop sync
-
Open a new command prompt and copy the connector to your instance by using the following
scp
command:scp -i ./FolderPath/MyKeyPair.pem ./FolderPath/cdata.jdbc.ProviderName.jar ubuntu@InstancePublicDNS:/home/ubuntu/cdata.jdbc.ProviderName.jar
-
Copy the connector to the
libs
folder by submitting this command:sudo cp ./home/ubuntu/cdata.jdbc.ProviderName.jar /opt/sync/libs/cdata.jdbc.ProviderName.jar
-
Restart the Sync service by submitting this command:
sudo systemctl start sync