It hit me again. Sometimes there are things that simply don't work, yet, on my Mac. One of those things is the development and deployment of an HANA XS application on the SAP HANA Cloud Platform. In this blog I'll explain how you can setup such a system on your Mac using an Ubuntu VM.
Preparing for my sessions at SAP TechEd 2013 I wanted to present how to create HANA XS apps on the SAP HANA Studio and deploying those to the HANA XS instance on my trial account on the SAP HANA Cloud Platform.
First of all and most importantly SAP already provides developer editions of the SAP HANA Client and SAP HANA Studio.
But currently SAP HANA Client doesn't support Mac OS.
But you can get around this. Based on a blog I wrote end of last year (Setting up Ubuntu for SAP HANA Cloud) I've done some improvements and collected various hints and how-tos from other pages on SCN and in the web.
The result was a bash script that you run on a plain Ubuntu system, in my case inside an Ubuntu VM, providing you with
These are the steps you need to go through
After that you can start developing and use resources like the following blogs or web pages to deploy HANA XS applications on SAP HANA Cloud Platform with an Ubuntu VM on your Mac! And all of that in around 20-30 minutes.
I currently use VMware Fusion to install and run virtual machines on my desktop. But there are others you can use, too.
On the Ubuntu side I've used the newly released Ubuntu 13.10, 64 bit. It worked fine for me.
If somehow possible try assign your VM something around 2GB of RAM. I had issues with 1GB of RAM and finally gave the VM 4GB of RAM and didn't have any issues with that setting anymore.
Once you've done that you need to:
In this step you have to download all the necessary files for the installation. To do that call the Firefox browser and get all the downloads you can see in the following list. In total we are talking about 7 files (aprox. 1GB in total):
At the end of this procedure you should have a list of 6 files in the Downloads folder of your home directory.
Now we are getting to the meat. You need to create a bash file called install.sh.
But before there is one important point that you need to consider:
Please do NOT use this script for usage in any productive environment! This script is aiming to setup a development environment for you so that you can try out the various developer editions of the SAP products that the script installs.
Now that this is clear please go to your Ubuntu terminal and type the following command
sudo gedit install.sh
A text editor opens up with an empty document. Now take the complete text of the file I've attached to this blog (install.sh.txt.zip), unzip the file and paste the content of the file into the text editor of your Ubuntu system that just opened up.
You need to ensure that the text #!/bin/bash is really on the first line. Save the file and exit the editor by closing it.
Before you can run it you need to make the bash file executable. You do that with the following command:
chmod +x install.sh
The only thing left to do now is to run the script and wait until the installation is done. Inside your Downloads folder where the install.sh file is just type the following command and press the return key:
./install.sh
After the script is ready you will have all the software installed in the /opt/sapdev folder of your Ubuntu VM. Depending on the speed of your internet connection this may take a couple of minutes.
As I wanted to keep this as straight-forward as possible and didn't pay too much attention (actually no attention at all) around making this available for a specific user account on the Ubuntu system you need to call all the apps as sudo.
If there is enough interest in this topic and if people have suggestions how to adapt the script accordingly I might adapt the script to address this issue.
But if you just want to use it you can start Eclipse in the folder /opt/sapdev/eclipse by calling ./eclipse as sudo.
sudo /opt/sapdev/eclipse/eclipse
Please be aware that you still need to install the Eclipse plugins for SAP HANA Cloud Platform manually as described in the documentation.
You can start the SAP HANA Studio from the folder /opt/sapdev/hanastudio.
sudo /opt/sapdev/hanastudio/hdbstudio
When using the SAP HANA Studio and you get the question where to find regi you need to provide it via the path /opt/sapdev/hanaclient.
The regi application is inside that folder.
Currently there are already very good blogs and other resources explaining how you can connect SAP HANA Studio to your HANA instance on the SAP HANA Cloud Platform. Here's a list of good examples you can use:
Don't miss the openSAP course Introduction to SAP HANA Cloud Platform for more insights into the usage of SAP HANA Cloud Platform.
Hope that this blog is useful for you.
Best,
Rui
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 | |
7 | |
7 | |
7 | |
7 | |
6 |