
SAP HANA
PRODHow to Run the Connector Externally
To run the Ingestion via the UI you’ll need to use the OpenMetadata Ingestion Container, which comes shipped with custom Airflow plugins to handle the workflow deployment. If, instead, you want to manage your workflows externally on your preferred orchestrator, you can check the following docs to run the Ingestion Framework anywhere.Requirements
OpenMetadata 1.1 or later
To deploy OpenMetadata, check the Deployment guides.
Python Requirements
To run the SAP HANA ingestion, you will need to install:Metadata
To extract metadata the user used in the connection needs to have access to theSYS schema.
You can create a new user to run the ingestion with:
_SYS_BIC schema. You can grant the required permissions to the user by running the following SQL commands:
_SYS_REPO schema, required for lineage extraction.
Profiler & Data Quality
Executing the profiler Workflow or data quality tests, will require the user to haveSELECT permission on the tables/schemas where the profiler/tests will be executed. The user should also be allowed to view information in tables for all objects in the database. More information on the profiler workflow setup can be found here and data quality tests here.
Metadata Ingestion
All connectors are defined as JSON Schemas. Here you can find the structure to create a connection to SAP HANA. In order to create and run a Metadata Ingestion workflow, we will follow the steps to create a YAML configuration able to connect to the source, process the Entities if needed, and reach the OpenMetadata server. The workflow is modeled around the following JSON Schema1. Define the YAML Config
This is a sample config for SAP HANA:2. Run with the CLI
First, we will need to save the YAML file. Afterward, and with all requirements installed, we can run:Lineage
After running a Metadata Ingestion workflow, we can run Lineage workflow. While theserviceName will be the same to that was used in Metadata Ingestion, so the ingestion bot can get the serviceConnection details from the server.
1. Define the YAML Config
This is a sample config for Lineage:- You can learn more about how to configure and run the Lineage Workflow to extract Lineage data from here
2. Run with the CLI
After saving the YAML config, we will run the command the same way we did for the metadata ingestion:Data Profiler
The Data Profiler workflow will be using theorm-profiler processor.
After running a Metadata Ingestion workflow, we can run the Data Profiler workflow.
While the serviceName will be the same to that was used in Metadata Ingestion, so the ingestion bot can get the serviceConnection details from the server.
1. Define the YAML Config
This is a sample config for the profiler:- You can learn more about how to configure and run the Profiler Workflow to extract Profiler data and execute the Data Quality from here
2. Run with the CLI
After saving the YAML config, we will run the command the same way we did for the metadata ingestion:ingest, we are using the profile command to select the Profiler workflow.
Auto Classification
The Auto Classification workflow will be using theorm-profiler processor.
After running a Metadata Ingestion workflow, we can run the Auto Classification workflow.
While the serviceName will be the same to that was used in Metadata Ingestion, so the ingestion bot can get the serviceConnection details from the server.
1. Define the YAML Config
This is a sample config for the Auto Classification Workflow:2. Run with the CLI
After saving the YAML config, we will run the command the same way we did for the metadata ingestion:Data Quality
Adding Data Quality Test Cases from yaml config
When creating a JSON config for a test workflow the source configuration is very simple.serviceName (this name needs to be unique) and entityFullyQualifiedName (the entity for which we’ll be executing tests against) keys.
Once you have defined your source configuration you’ll need to define te processor configuration.
"orm-test-runner". For accepted test definition names and parameter value names refer to the tests page.
You can keep your YAML config as simple as follows if the table already has tests.
Key reference:
forceUpdate: if the test case exists (base on the test case name) for the entity, implements the strategy to follow when running the test (i.e. whether or not to update parameters)testCases: list of test cases to add to the entity referenced. Note that we will execute all the tests present in the Table.name: test case nametestDefinitionName: test definitioncolumnName: only applies to column test. The name of the column to run the test againstparameterValues: parameter values of the test
sink and workflowConfig will have the same settings as the ingestion and profiler workflow.