Skip to Content

Load Data into Standalone Data Lake in SAP HANA Cloud

Learn to load data into tables in a standalone data lake in SAP HANA Cloud.
You will learn
  • How to create tables in a standalone data lake
  • How to load data hosted in an Amazon Web Services (AWS) S3 bucket into a standalone data lake
  • How to load data hosted in a Microsoft Azure container into a standalone data lake

Prerequisites

  • You have completed the provisioning of a standalone data lake in SAP HANA Cloud using a free tier, trial, or production account.
  • Make sure your data lake instance is running before you start.
  • Download the supporting files to gain access to sample data required for loading tables.

The supporting sample data and code files are available on a public GitHub repository. From the folder Mission: Get Started with a Standalone Data lake download the zip file Sample Data.

In this zip file, you will find four tables:

  • Customer.tbl

  • Nation.tbl

  • Region.tbl

  • Supplier.tbl

In the same GitHub folder, you can also find the SQL scripts used in this tutorial as a zip file or as individual files.

If you decide to use Interactive SQL instead of SAP HANA database explorer, please copy the SQL Scripts used in this tutorial onto the machine where you installed the Interactive SQL.

  • Step 1

    Before you create tables, it is recommended that you also create a new user, so that your new tables are not owned by HDLADMIN. With a new user, your new tables will be created under a particular schema.

    This helps you keep your data organized in the simplest level and keeps the tables separate from other tables that might already exist under the HDLADMIN user. Creating a new user also allows you to control the permissions as a group and assign whatever roles you require.

    To add a new user, follow these steps:

    1. Log in to SAP HANA Cloud Central. In the Actions column of your standalone data lake, click on the three dots and select Open SQL Console. This will open a SQL console connected to your data lake.

    2. Enter your data lake credentials if prompted. Then create a new user with the statement given below. Provide your new username and password in the appropriate fields.

      SQL
      Copy
      CREATE USER <username> IDENTIFIED BY <password>
      

    For more in-depth information about creating users in SAP HANA Cloud, data lake, please see our technical documentation.

  • Step 2

    For this step, select your preferred method by clicking on the options under the step title.

    Now it’s time to create tables. In this example, you will create the following tables:

    • customer
    • nation
    • region
    • supplier
  • Step 3

    For this step, select your preferred method by clicking on the options under the step title.

  • Step 4

    For this step, select your preferred method by clicking on the options under the step title.

    In this tutorial, you have learned how to load data into the tables in the SAP HANA Cloud, data lake. In the next tutorial, you will see how to monitor your standalone data lake.

  • Step 5

    Suppose you have provisioned your Data Lake, IQ instance in maximum compatibility mode with SAP HANA Cloud, SAP HANA database. This mode does not support the following data type:
    (Multiple answers may be correct.)

Back to top