Configure HTTP proxy
Proxy without authentication
Forward traffic through the proxy using Java HTTP properties in the /etc/wandisco/livedata-migrator/vars.env
configuration file.
HTTP proxy JVM Arguments
Argument | Description |
---|---|
http.proxyHost | The hostname of the proxy server to be used for HTTP traffic. |
https.proxyHost | The hostname of the proxy server to be used for HTTPS traffic. |
http.proxyPort | The port the proxy server for HTTP is listening on. |
https.proxyPort | The port the proxy server for HTTPS is listening on. |
http.nonProxyHosts | Hosts (or IPs) which should be reached directly, not through the proxy. |
Configure Data Migrator to use a HTTP proxy
Add your proxy server arguments to Data Migrator configuration to enforce the use of a proxy server.
- Open/edit
/etc/wandisco/livedata-migrator/vars.env
in a text editor. - Supply your proxy configuration on a new line starting with
LDM_EXTRA_JVM_ARGS=
. Ensure all arguments are enclosed in quotation marks.LDM_EXTRA_JVM_ARGS="-Dhttp.proxyHost=<proxy-hostname> -Dhttp.proxyPort=<proxy-port> -Dhttps.proxyHost=<proxy-hostname> -Dhttps.proxyPort=<proxy-port> -Dhttp.nonProxyHosts=\'localhost|127.0.0.1|<cluster-name-*>\'"
- Save the changes.
- Restart the Data Migrator service using the
systemctl restart <service>
command.systemctl restart livedata-migrator
Proxy with authentication
Supplying proxy properties is supported with S3a filesystems only.
Supply S3 proxy properties when adding or updating your S3a filesystem to use a proxy server.
S3a Proxy properties
Use the following key and value pairs when adding or updating your S3a filesystem to use a proxy server.
key | value |
---|---|
fs.s3a.proxy.host | Hostname of the (optional) proxy server for S3 connections. |
fs.s3a.proxy.port | Proxy server port. |
fs.s3a.proxy.username | Username for authenticating with proxy server. |
fs.s3a.proxy.password | Password for authenticating with proxy server. |
Find more information on s3a properties from the official Hadoop documentation here.
Configure proxy with S3a properties with the UI
Include your proxy configuration when adding a S3a filesystem by following the steps outlined in any of the S3 Source, S3 target, Amazon S3 source or Amazon S3 target configuration sections.
Supply your proxy configuration key and value pairs under S3A Properties when adding the filesystem.
You can also add proxy configuration to existing S3a filesytems.
Select your S3 filesystem from Filesystems & Agents > Filesystems. Then add your proxy key and value pairs under S3A Properties.
Configure proxy with S3a properties in the CLI
Use the --properties
flag to include proxy configuration when adding your S3a filesystem with filesystem add s3a
CLI command.
Add a S3a filesystem with proxy config example
filesystem add s3a (--source or --target) --access-key *** --secret-key *** --file-system-id <naming-FS> --endpoint <AWS-endpoint> --bucket-name <name-of-bucket> --properties "fs.s3a.proxy.host=<proxy-host> , fs.s3a.proxy.port=<proxy-port> , fs.s3a.proxy.username=<proxy-user> , fs.s3a.proxy.password=<proxy-pass>"
Update a S3a filesystem with proxy config example
Use the --properties
flag to include proxy configuration when updating your S3a filesystem with filesystem update s3a
CLI command.
filesystem update s3a --properties "fs.s3a.proxy.host=<proxy-host> , fs.s3a.proxy.port=<proxy-port> , fs.s3a.proxy.username=<proxy-user> , fs.s3a.proxy.password=<proxy-pass>"
Use commas to separate each property key and value pair and enclose them with quotation marks. --properties "key=<value> , key=<value>"