Editing Adapter Configuration Files
- Locate which files to edit locally on HANA Studio and on the Streaming Server
- How to edit the
modulesdefineandcustommodulesdefine.xmlfiles - How to edit the
parametersdefine.xmlfile - To transfer the files edited on the Streaming Server to the client where the HANA Studio is running
Prerequisites
IMPORTANT! Since you’re running a
multidbSAP HANA environment,$STREAMING_CUSTOM_ADAPTERS_HOMEwill refer toassuming you have used the default location of/hana/shared/<SID>/streaming/cluster/<tenant db>/adapters/hanaas the root directory for the installation.
For this step, we will be adding our custom modules to the modulesdefine.xml file and custommodulesdefine.xml file, and adding parameter definitions from the .cnxml file to parametersdefine.xsd. The modulesdefine.xml file is located in the $STREAMING_HOME/adapters/framework/config directory, the custommodulesdefine.xml file is located in the $STREAMING_CUSTOM_ADAPTERS_HOME/configdirectory, and the parametersdefine.xsd is located in the $STREAMING_CUSTOM_ADAPTERS_HOME/config directory. We are not creating these files from scratch. The purpose of the modulesdefine.xml file is to define our custom modules (Transporter and Formatter) so HANA Streaming Analytics knows what they do and where they reside.
The parametersdefine.xsd file simply defines what elements are valid in an adapter_config.xml file (adapter configuration file). Since we have used a custom element – MqttInputTransporterParameters – in our adapter_config.xml file, we must define it in parametersdefine.xsd.