You will learn

In this tutorial, you will install the dependencies needed for the setup and execution of HANA Express Edition in your Ubuntu OS image on the Google Cloud Platform.NOTE: SPS02 will not work with this installation. An update is pending

Disclaimer

SAP HANA, express edition (HXE) is officially supported on SLES and RHEL. SAP Community members have been successful in running HXE on other Linux operating systems that are not formally supported by SAP, such as Ubuntu, openSUSE and Fedora. SAP is not committing to resolving any issues that may arise from running HXE on these platforms.

Details

Step 1: Install or check openssl

Enter the following command to make sure openSSL is up to date or continue installation:

apt-get install openssl

You will probably get a message indicating it is already installed:

Step 2: Install cracklib

Enter the following command to install cracklib:

apt-get install libpam-cracklib

At any time during the installation of dependencies, you may be prompted about using more disk space. Make sure to answer Y:

Step 3: Install libtool

Enter the following command to install libtool:Example:

apt-get install libltdl7

Step 4: Install the AIO library

Enter the following command to install AIO:

apt-get install libaio1

Example:

Step 5: For XSA installation, install unzip

If you are planning on installing the server and XS Advanced applications, you will also need to install unzip:

This is a command that is not available in Ubuntu. You will download its equivalent and create an alias so it can be called by the installation script.

apt-get install sysv-rc-conf

Example:

And set the alias for the installer:

alias chkconfig='sysv-rc-conf'

Also for SAP HANA 2.0 SPS01, install curl:

apt-get install curl

Step 7: Update the hostname

Google Cloud Platform will overwrite your hosts file every time you reboot the virtual machine. HANA Express Edition relies on the hostname to execute most of its services, so it is essential that you use something that can be accessed from outside the server.

You can do this manually by changing the configuration in the file /etc/hosts every time you reboot the machine. Fortunately, there is a script to place at startup that can do this automatically.

Note that the hostname has to match the name of the VM instance.

Go to your home directory and create a file:

nano ./set_hostname.sh

Paste the following into the editor:

#! /bin/bash
hostname <<your hostname>>

Example:

Or for the server-only:

Press Ctrl-O and Ctrl-X to save and exit.

Grant permissions for all users on the script with command chmod:

chmod 777 ./set_hostname.sh

Step 8: Configure the script to set the hostname at startup in Google Cloud Platform

Go to the VM instances, click on your instance:

And then click on Edit:

Scroll down to the custom metadata section and add:- startup-script in Key- /home/your_home_directory/set_hostname.sh in Value

For example:

Reboot your Virtual Machine and check that your hostname has been set automatically with command hostname.