Thursday, January 18, 2018

How to install evaluation CloverETL server on AWS in ten minutes or less

How to install evaluation CloverETL server on AWS in ten minutes or less
If you like to investigate and play with different tools and software like me you know that nothing is
more boring than spending too much time spinning up a tool for the first time just to play with.

In CloverETL you have two parts you can experiment with: CloverETL Designer, an IDE build
on the Eclipse platform and CloverETL Server, a Java web application that can be run in any
modern application container.

Designer installation should be pretty straight forward. we have bundled all the needed parts
in an installer, so you just need to point wizard to folder where you would like to install Designer.
a Next step is if you would like to include standalone installation of JDK (highly recommended) and
then just keep hitting Ok or Next button whenever you see one in the wizard to continue
with default installation.

Just a side note: you can also install Designer as an Eclipse plugin. This would be helpful in case  
you are familiar with Eclipse, you are running fine tuned deployment of Eclipse, and you would like
to enrich it with CloverETL functionality without the need to have two different IDEs and keep
switching between those two.
system-requirements-for-designer.html#plugin-installation for more information.

But let say, you have your Designer installed, you experimented with it to your heart's content and
you would like to investigate neat functionalities of a server as scheduling, event listening,
exposing graphs to outside application. This means installation of a CloverETL server.

There are couple of ways where and how to install, but I’ll focus in this article on an installation
on AWS.

This approach should allow you an easy deployment and easy modifications of server resources
for first steps, features investigation and performance experiments etc.

I will show you in next paragraphs detailed step by step of one installation. At the end of this article
you should have working a CloverETL server deployment. I would highlight additional steps for
recommended installation in the end.


AWS account - if you don’t have it, go to and create one
Licence and war file for CloverETL server -  if you don’t have it, go to and register there - or send an email to where someone will help you get everything you need on a CloverETl side.

For an easy installation I would recommend using bundle of CloverETL server and Tomcat application
container which you can find on after you login with your
CloverETL account credentials. If you had this bundle and license already downloaded, you could
safely skip this section and continue directly to an AWS part.

CloverETL download

If you have a CloverETL account, you can go to
where you should see all available trial licences and downloads for Designer and Server installations.

You will see two options after clicking on ‘Download CloverETL Server’, you can select a current
Production release or if you are a maverick, an adventurer and you want to play with version that is
on the bleeding edge, you can choose Milestone release.
(Think about it as a release candidate before a production version, it's full of brand new features,
but we don’t recommend it for production deployment.)

I will select Production release.
There is an another menu where I can select an appropriate package. CloverETL server can run on
any J2EE application server as Apache Tomcat, JBoss, Jetty or other. You can only select an
installation file (.war) appropriate for your server, but in my article I am focusing on a fresh installation
so I would highly recommend using a ‘CloverETL Server All-In-One bundle’.
This bundle consists of Tomcat app container (at the time of writing this article it’s version 8),
deployed CloverETL server and a small Derby backend database ready to run.

In a next step I will just click on ‘Download as .zip archive’, which will download bundled installation file
together with a documentation and some helpful utilities. I will use ‘Copy to clipboard’ button later
to copy license text that I’ll use after installation to register my CloverETL server.

AWS part

I will login to with my AWS credentials, select an EC2 link in the
‘Services’ section. I will continue with clicking on a ‘Launch Instance’ button.

I can select operation system of virtual machine that will host CloverETL server in section 1.
You can select whichever OS you prefer, any flavour of Linux or Windows, for sake of our article
I picked official an Amazon version of Linux.

On the next page you will find list of all instance types AWS is offering you to use. You can select
a small machine that is part of a ‘Free tier’, but that would limit you in your experimentation with
CloverETL to basic use cases on limited set of data only.
You can check system requirements for server
topic/ .

In our example I will pick one of ‘General purpose’ family, a m4.xlarge looks like a nice machine
that could have decent power to handle all my wild tests and examples.
(You can start with smaller machine, but I wouldn’t go for machines with a 4GB of memory or less
as CloverETL tries to run transformations  in memory as possible which allows us great performance.)

In next section, ‘3. Configure Instance’ you can select if you would like to start your EC2 instance
into  ‘EC2 Classic’ or specific VPC. If you expect working with additional cloud tools and sensitive
data I would highly recommend to create separate VPC. More information about VPC at

Section 4 lets you assign disk space for your EC2 instance. Installation of CloverETL and Tomcat
is not really big, it will be in lower hundreds of MB, but you need take into account a size of data
that you would be processing, some necessary place for temporary and log files. I will start
on the smaller side with 32GB. AWS allows me to attach additional volumes really easily later if
I can skip section 5 for now (you can name your instance later), I need to focus on section ‘6.
Configure Security Group’. This part configures security and allows application from outside world
communicate with your EC2 installation. By default you would get a port 22 open for SSH connection.
(Console access to your server, we will use later.)

CloverETL is an J2EE application, you can access it and communicate with it with use of an internet
browser. Bundled installator starts CloverETL by default on port 8083, so I need to open that one too.
Check info icon next to Source column for details, I would recommend to tight access a bit down,
to your IP, or subnet of IPs. ‘, ::/0’ means that port is open for whole wide world, which might
be really dangerous.

You can add or edit security group rules later even on a running instance, but don’t forget about them!

You can just review your configuration on the next page  and click on ‘Launch’ button which will spin
up a server instance.
Last necessary step of this process is to select an existing SSH key to access your new started
EC2 instance. (Or you can create new pair. In that case you would need to download private key file
and store it securely.)

AWS will try its best to point you to importance of these ssh keys, so save a private key to
your machine, you will need it in next steps!
If you would miss this step, or misplace the private key, an instance will be practically unusable and
inaccessible. It wouldn’t be such a big deal, you would just need to start this setup process from

At this time you should have new fresh EC2 instance starting up, you will find it under link
‘Running Instances’ of an EC2 Dashboard. (There might be direct link to view you new fresh instance
after pressing “Launch” button.

If you skip section 5, new instance would be without any name, you can click to a empty space in
‘Name’ column to name it properly. If you click on a selection rectangle in the list you will get
additional information about your instance.

Now you need to upload a CloverETL server bundle zip file to the server. For that you will need
to connect to the instance with a SSH client (do you remember open port 22?). There is great
documentation how to do it
I would just highlight important points here.

I will use a Putty client. Documentation for using this tool is here .
(If you will decide to use Putty, you would need to convert primary key you downloaded to appropriate
format via PuTTygen, consult higher mentioned link to the documentation.)

First you need to fill in an user and a hostname of the EC2 instance you want to connect to. User
should be ‘ec2-user’, hostname is value from ‘Public DNS (IPv4)’ from your instance (values need to
be separated by a ‘@’ character).

Second step is to provide private key. Go to ‘Connection > SSH > Auth’, locate .ppk file (you
downloaded .pem file during spinning up of the instance, see AWS documentation how to use
PuTTygen to get .ppk file -

Hit Open (or click back to Session link in the left column to Save connection information if you would
like to reuse it).

Putty will connect you to your EC2 instance, just hit ‘Yes’ on ‘PuTTy Security Alert’ dialog to cache
server host key. If you configured everything correctly, you should be connected to the server’s ssh
console. If not, check

My Amazon instance recommends me to trigger automatic update, so I will follow with triggering:
sudo yum update

Next step is to copy a CloverETL bundle to the instance itself, I would use my favourite WinSCP for
that (I’ll upload bundle to /tmp folder on the instance).
‘Host name’ is from ‘Public DNS (IPv4)’ again, user is ‘ec2-user’, click on Advanced and locate ssh
private key (same as in previous step with a Putty).

I’ll locate a zip file of the CloverETL bundle and will copy it into /tmp folder.

Now I can switch back to Putty console and go to /tmp folder.

Unzip the bundle with command:

This will unzip couple of files, I am interested only in a ‘’ for

On production server I would now recommend to create specific user for clover and assign him
ownership to all folder I will create in later steps, for evaluation I will skip this.
I will create new folder ‘clover’ and unzip ‘’ it there.
You should have now folder ‘/clover/CloverETLServer.4.5.1.Tomcat-8.0.30’ with deployed files of
Tomcat and CloverETL server.


If you remember System requirements for CloverETL server,
UserGuide/topic/ , you can
see that we need a Oracle JDK, you can double check version of java on your instance with:
java -version
You may notice that we have unsupported OpenJDK currently . We need to install Oracle JDK instead.
This could be a bit cumbersome as Oracle forces you to go through their site and accept a License
agreement. I found nice workaround for that here
(I assume that Oracle takes this as explicitly accepting License agreement, so don’t complain you
didn’t know about it ;).)

For current (Java8, build 131) steps would be:
sudo wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-
sudo rpm -i jdk-8u131-linux-x64.rpm
(notice cookie portion and apostrophes)
Check again with ‘java -version’ command if Java version got changed, if not continue with steps in
gist link.

Hold on, only couple steps left.

Now we need to configure memory available for a Tomcat (eg. CloverETL server). It should be
percentage of physical memory on host machine. We recommend something between 50-70% of
available physical memory, depending if the host is used for additional software or not.
In our case let’s make it easy, we have 16GB available, let’s give approximately 8GB to tomcat.
sudo vim /clover/CloverETLServer.4.5.1.Tomcat-8.0.30/bin/
And update Xmx property.
I like to explicitly set a JAVA_HOME environment property, so I will also add as a first line:
export JAVA_HOME="/usr/java/default"

Just for better feeling I would change owner of deployed files to ‘ec2-user’ with:
sudo chown ec2-user:ec2-user /clover -R

Finally I can start Tomcat and check if its running:
sudo /clover/CloverETLServer.4.5.1.Tomcat-8.0.30/bin/
ps aux | grep clover

You should be seeing something like:

If you are seeing only one, much shorter line, consult logs:
cat /clover/CloverETLServer.4.5.1.Tomcat-8.0.30/logs/catalina.out

Now I can go back to my EC2 Dashboard and copy ‘Public DNS (IPv4)’ (same value we used as a
hostname in Putty, WinSCP), put it into a browser and add at the end “:8083/clover”.

You should be afterwards seeing front page of your freshly created CloverETL server on EC2.

You can click on ‘Activate server’ link, which will open a text field where you can copy license text
that you should have available from

There might be additional configuration as:
  • Configure smtp (for emails)
  • Configure internal db (evaluation server runs on Derby DB, we recommend to use real DB for
  • production deployments)
  • Configure Tomcat as a service (or to make it start after instance reboot automatically)

These settings are out-of-scope of this article, but you should investigate them later.

I probably spent more than promised 10 minutes with all this screenshot taking and writing, but I hope
that you would be able to spin up a working CloverETL server for your testing and evaluation with this
blogpost much, much faster.

No comments:

Post a Comment