Install the Basic Prerequisites

Get set up to install Data Hub.

Context

Data Hub is a Java web application that uses a relational database. The following steps are required for minimal installation and, unless otherwise stated, are not valid for third-party software versions.

Procedure

  1. Download the latest Data Hub ZIP file containing the DH web application. See the Download section of this guide for further information.
  2. Install SapMachine JDK 11 from https://sap.github.io/SapMachine/Information published on non-SAP site. Data Hub supports 64-bit Java.
  3. Install Apache Tomcat 9.0.x from https://tomcat.apache.org/download-90.cgiInformation published on non-SAP site.

    Follow the instructions in the Apache Tomcat documentationInformation published on non-SAP site to install.

  4. Configure Tomcat to add SSL authentication. Follow the instructions in the Tomcat SSL/TLS Configuration How-ToInformation published on non-SAP site guide.
  5. Create an /opt/datahub folder.
  6. In the datahub folder, create the following new folders:
    1. config, used for the files local.properties and datahub.encryption.key.txt
    2. extensions
  7. Create an XML file.
  8. Open a new file in a text editor and copy the following into the file:
    <?xml version='1.0' encoding='utf-8'?>
    <!--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at
    
          http://www.apache.org/licenses/LICENSE-2.0
    
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <!-- The contents of this file will be loaded for each web application -->
    <Context antiResourceLocking="true"
    		docBase="{full path to your Data Hub installation}/hybris/bin/ext-integration/datahub/web-app/datahub-webapp-x.x.x.x-RCx.war"
    		reloadable="true">
    
        <Resources className="org.apache.catalina.webresources.StandardRoot" >
          <PostResources className="org.apache.catalina.webresources.DirResourceSet"
                        base="/opt/datahub/config" internalPath="/" webAppMount="/WEB-INF/classes" />
          <PostResources className="org.apache.catalina.webresources.DirResourceSet"
                        base="/opt/datahub/extensions" webAppMount="/WEB-INF/lib" />
        </Resources>
    
    </Context>
  9. Edit the <docBase> parameter to reflect the full path to your SAP Commerce Cloud installation.
  10. Save the file as datahub-webapp.xml into the <TOMCAT_HOME>/conf/Catalina/localhost folder. Note: the <TOMCAT_HOME>/conf/Catalina/localhost does not exist until Tomcat is run.
  11. Install the cURL command-line tool.

    From https://curl.haxx.se/Information published on non-SAP site, download and install the cURL software that is appropriate for your operating system.