In this three-part webblog series, we will setup our own server in the cloud and install and configure SAP NetWeaver Composition Environment CE 7.1 EHP 1 on it.
The Composition in the Cloud: Run your own SAP NetWeaver CE 7.1 EHP 1 in the cloud (Part 2 of 3) ended with a configuration of our Windows server instance at operating system level and the creation and association of a persistent hard drive in the cloud. We will now proceed with the actual installation of SAP NetWeaver Composition Environment.
Download and install 7-Zip from http://www.7-zip.org/download.html. It’s a free software you can use to extract RAR archives.
Start Firefox. Before you download the CE trial from SCN, go to Tools > Options > Main and select “Always ask me where to save files”. We want to download the CE trial to drive E: and not to the default location.
Next, launch URL http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/00846edd-355b-2b10-f38c-df94ec96eb74 to download the CE trial version.
Select the file labeled “Composition Environment (contains Java EE) (1.8 GB)” and save it on drive E:.
Now is a good time to reboot the server. Don’t use the AWS Management Console to do this – instead, click on Start > Shutdown > Restart. You have to type something into the “Comment” box to activate the “OK” button.
After a few minutes, we can reconnect to the server using the “Connect” function in the AWS Management Console. A nicer way is to use Windows Remote Desktop to connect to our new hostname “cloudce.dyndns.org” (or the hostname you have reserved).
Once you have logged on, please check that the changes you have made are still in effect: The hostname should not be overwritten and drive E: should still be mapped.
In the Explorer, go to drive E:, right-click on file CE711SP1_SDN-Preview.rar, and select 7-Zip > Extract to “CE711SP1_SDN-Preview.rar”.
While the archive is extracting, go to http://java.sun.com/javase/downloads/index_jdk5.jsp and download the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 5.0. Store the ZIP archive named jce_policy-1_5_0.zip in the root directory of drive E:.
Display file E:CE711SP1_SDN-Previewstart.htm in the web browser to view the installation prerequisites and some helpful links.
Program E:CE711SP1_SDN-PreviewCompEnvCE_SDN711_COMP_WIN_I386_ADAsapinst.exe is the actual installer. Launch it to start the installation process.
Now is a good time to bundle the instance. If we terminate the instance now without bundling it first, all the changes we have made (except for what was written to the E: drive which is an independent volume) will be lost.
So go to your AWS Management Console and open the Instances screen.
Select your instance and choose “Bundle Windows AMI” from the “More Actions” menu. This will cause your instance to be bundled, which means that a persistent image is going to be store from which you can launch as many instances as you wish.
A popup appears which asks for a Bucket name and S3 Key name. The Bucket is the folder in the S3 data storage we created earlier – I named mine “thorstensterbucket”. Enter the name you used here. Make sure you enter the name of a Bucket located in the same region the instance we’re bundling is running in.
The S3 Story Key is like a file name, so you can now enter a name for the bundled AMI. I name mine “ce711.first.image”.
The full name of the AMI is composed of the bucket name, followed by a slash (“/”), followed by the S3 Store Key, followed by “.manifest.xml”. So the AMI I create with the above bucket Bucket and Storage key name will be called “thorstensterbucket/ce711.first.image.manifest.xml”.
Using S3Fox, we can locate and download a file with this name. Amazon EC2 uses this XML file to store the meta data of your machine: The name, configuration, ancestry, filenames of part files, and other metadata can be found in it.
Opening the “Bundling Tasks” screen, you can follow the progress of your bundling task.
First the instance is shut down. (Don’t do that yourself or you won’t be able to bundle your instance or restart the image.)
The bundling and storing will take about ten minutes.
When the bundling task is complete, click on “Register as an AMI” to make the bundle available as a reusable server image. This will allow you to launch new instances, each of them will be exactly in the state of your original instance at the time of the bundling.
You can now terminate the running instance by clicking on “Terminate” on the Instances Screen. We don’t want two instances to compete for the same DynDNS hostname and we can attach our volume to one running instance at a time only.
Go to the AMIs screen and select “Owned by me” from the Viewing listbox. Your newly created AMI should be the only entry in the list. Select it and click “Launch”.
In the following screen, enter the parameters for launch.
We want one instance to be launched. This time we want instance type “High-CPU Medium (c1.medium)” because the previous instance was a bit low on resources. We select our key pair name and both security groups. Finally, we expand the “advanced options” section and select our favourite availability zone. It must be the one in which we created our Volume, in my case “us-east-1a”.
The launch will take roughly ten minutes.
When the instance is running, go to the “Volumes” screen in the AWS Management Console and attach your volume to the instance.
You should now check if the instance is complete and make any necessary repairs. In particular, you should check
If anything seems to be wrong, correct the error and reboot (do not relaunch!) your virtual server.
When your instance is in the desired state, proceed with the next step.
The installer has created an SAP Management Console icon on your virtual server’s desktop. Launch the SAP Management Console, expand the tree, right-click on “CE1”, and select “Start”. Enter your Windows Administator password if prompted.
The first start of the server should should take ten to fifteen minutes. Subsequent starts will be faster (five to ten minutes). The server start is completed when all the lights have turned from yellow to green and the Process List reports that all processes are running.
By the way, a good way to follow the startup procedure of your server is to select the AS Java Components node and follow the number of components with status “stopped” and expected status “running” (using the filter at the top of the table) as it plummets towards zero.
Once the CE server is up and running, you should configure it before using its major components.
I put up a separate blog, Take Fifteen Minutes and Two Coffee Breaks to Configure Your Composition Environment 7.1 EHP 1 Trial... (Take Fifteen Minutes and Two Coffee Breaks to Configure Your Composition Environment 7.1 EHP 1 Trial...) to describe the installation process.
It includes:
All the configuration parameters, file paths, hostnames, usernames, and passwords in the CE configuration blog are completely consistent with this one so it should be very quick and easy to work through it.
Having completed the configuration of your CE server, we can persist the results by bundling another AMI from our running instance. We will just overwrite the existing AMI image.
Launch your AWS Management Console (https://console.aws.amazon.com/ec2/home) and go to the Instances screen.
Mark your running instance and select More Actions > Bundle Windows AMI.
Insert your bucket and storage key name as you did when creating the first bundle.
When the bundle task is completed, register the AMI, detach your volume from the currently running instance, and terminate the instance.
In the AWS Management Console, go to the Security Groups screen, select one of your security groups, and add the port number you need to access your server from the internet.
The least you need to release is the server’s HTTP port 50000. The following screen shot show how to open port 50000 to all source IPs on the internet.
If you want to connect using other protocols such as from NetWeaver Developer Studio (to deploy) or if you want to call the system via RFC (from an ABAP system), you will have to release more ports.
In the SAP Management Console of your CE system, select node “Access Points” to see which ports are open on the machine.
To launch your complete Composition Environment in the cloud, follow these steps:
You’re all set now:
I hope that sharing my experiences and the things I have learned about using Amazon Web Services in the past few days will help you get started quickly. Please let me know about your experiences.
I hope further that the future will bring interesting discussions of use cases for SAP systems in the cloud: training, development systems, sandboxes, non-critical production systems? Which possible usages do you see, and how can your company or you personally benefit from SAP systems in the cloud? Let’s discuss this further.