Setting Up SAP Connector
Extract the connector build, load the adapter image, and configure the SAP Connector.
Follow the steps below for setting up the SAP Connector:
Note:
This Connector can run on any operating system that supports docker.
1. Untar tar.gz file.
tar -xvf connector.tar.gz
You get a connector folder that contains the following.
- conf.tar file
- ext-system-adapter_<tag>.tar file
-
sql.tar file
-
ext-system-adapter_<tag>.tar file is a Docker image you can load directly in
Execute the following command to load the Docker image.
docker load -i ext-system-adapter_<tag>.tar
3. Untar the tar file.
tar -xvf conf.tar
4. The conf directory contains all the configuration files as follows:
- adapter-conf.yaml
- logback.xml
Update the adapter-conf.yaml file as shown below.
| Parameter | Value |
|---|---|
| className | “com.appnomic.heal.etladapter.re positories.AdapterConfigMaster”. Do not modify. |
| properties: | |
| hibernate.connection.username | User name of the SAP. |
| hibernate.connection.password | Password of the SAP. |
| hibernate.connection.autoReconnect | “true”. Do not modify. |
| hibernate.c3p0.min_size | “1”. Do not modify. |
| hibernate.c3p0.max_size | “3”. Do not modify. |
| hibernate.connection.url | “jdbc:mysql://<ip-address of Percona>:<port number of Percona>/<SAP schema name>? verifyServerCertificate=false&use SSL=true&requireSSL=true&enab ledTLSProtocols=TLSv1.2&useS erverPrepStmts=true&cacheServe rConfiguration=true” |
| adapterProperties: | |
| hibernate.connection.username | User name of the appsone database. |
| hibernate.connection.password | Password of the appsone database. |
| hibernate.connection.autoReconnect | “true”. Do not modify. |
| hibernate.c3p0.min_size | “1”. Do not modify. |
| hibernate.c3p0.max_size | “3”. Do not modify. |
| hibernate.connection.url | jdbc:mysql:// ://<ip-address of appsone DB>:<port number of appsone DB>/appsone |
| connector.id | To get the connector ID, refer to the mst_connector_details table. |
For example:
className: "com.appnomic.heal.etladapter.repositories.AdapterConfigMaster"
properties:
hibernate.connection.username: "dbadmin"
hibernate.connection.password: "<password>"
hibernate.connection.autoReconnect: "true"
hibernate.c3p0.min_size: "1"
hibernate.c3p0.max_size: "3"
hibernate.connection.url: "jdbc:mysql://192.0.2.78:3307/dataadapter_sap? verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProto cols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=true"
adapterProperties:
hibernate.connection.username: "dbadmin"
hibernate.connection.password: "<password>"
hibernate.connection.autoReconnect: "true"
hibernate.c3p0.min_size: "1"
hibernate.c3p0.max_size: "3"
hibernate.connection.url: "jdbc:mysql://192.0.2.78:3307/appsone"
connector.id: "5"
6. Create a folder named ‘SAP Connector’ inside the centralized_logs folder.
- Update the same in the Nomad file:
volumes = [
"/opt/Installer/Heal/centralized_logs/sap-connector:/opt/heal/ext-system-adapter/logs",
"<untarred conf directory path>:/opt/heal/ext-system-adapter/conf"
]
8. Database Tables: The SQL files to create and populate all tables are in ext-system-adapter-<version>/sql/SAP.
- adapter.sql: creates adapter framework tables (run first).
- sap-adapter-create.sql: creates SAP-specific tables.
- adapter_sap_insert.sql: inserts or seeds SAP-related data into the adapter framework tables.
- sap-adapter-insert.sql: seeds all SAP configuration data.