Server Installation Guide
Server Installation Guide
Introduction
KNIME Server is an enterprise-grade solution for Advanced Analytics workloads such as
sharing workflows, and executing workflows. The Server is based on the Tomcat application
server, and uses a core of KNIME Analytics Platform in order to execute workflows. The
KNIME Server installer can install both of these components that make up KNIME Server.
This document aims to give a quick overview of the steps needed to perform the installation,
and a short description of the options that can be changed at install time. After installation,
you can refer to the KNIME Server Administration Guide for detailed information about the
Server architecture, configuration options and general administration tasks. More details
about the functionality of KNIME Server are listed in the following paragraphs.
KNIME Server provides KNIME software users with a shared remote workflow repository.
Workflows can be uploaded to and stored on the server or retrieved from it to a local KNIME
workspace. Workflows on the server can be executed as jobs either as needed or as part of a
one time or periodically scheduled event. Additionally, workflows may be executed through a
web browser using the KNIME WebPortal or via generic SOAP or RESTful web service
interfaces which allow control from 3rd party applications. The KNIME Explorer view, which is
built into KNIME Analytics Platform can be used to log into remote repositories, control user
access permissions and schedule workflow execution tasks.
KNIME Server consists of two components: a server side component and a client interface.
The server side component is installed on an application server (Tomcat) together with a
KNIME Analytics Platform installation which will be responsible for executing workflows. The
latter is referred to as "Executor". The client interface allows interaction with the server
repository and is integrated in KNIME Analytics Platform (via the KNIME ServerSpace
extension), and KNIME WebPortal, or accessible via the REST API.
Prerequisites
Server
• The operating system on the server can be either Windows, Linux, or macOS. The
following operating systems are officially supported:
The server may also run on other operating systems, however, we neither test nor
support them through the KNIME Server standard support package.
• We strongly recommend a 64bit operating system with at least 8GB RAM and 4 CPU
cores
• Java Development Kit (JDK) 8, 64bit
◦ For all other OS please download and install the latest JDK from the Oracle
Website
For generation of images using the Chromium extension the following additional extensions
are required under Linux: * Ubuntu: sudo apt install -y libgtk-3-0 * RHEL 7/CentOS: sudo
yum install libXScrnSaver
Client
• Operating system Windows, Linux, or macOS (independent from the server OS)
This user must do the entire KNIME Server Executor installation including
unpacking of KNIME Analytics Platform and installation of all desired additional
features. If additional features are added later with a user that cannot write to
the installation folder, the installation may appear to work normally, but causes
problems some time later which can be difficult to track down.
Installation
It is recommended that the entire installation process is performed by the same user, e.g
knime (see The installation owner above). Don’t install the server as Administrator or root
user! Follow the installation instructions step by step. Don’t skip anything unless it is marked
as optional.
The KNIME Server installer is a single JAR file that works on all supported platforms
(Windows, Linux, macOS). Use of the JAR file is described in the following sections.
Summary
We briefly describe the installation options available in this guide. For full details about any of
the options see the KNIME Server Administration Guide.
Before you start, make sure that the Java 8 JDK is installed (see Prerequisites).
It is also possible to step through the installation via the command line. In this case issue the
command:
1. Select existing KNIME Server Executor (default): This means that you need to
have previously installed a compatible KNIME Server Executor using one of the
downloads from the KNIME Website. Note that the downloadable KNIME Server
Executor build contains the required extension, but a standard KNIME Analytics
Platform build will not be sufficient. In the latter case the "KNIME Executor
Connector" (in category "KNIME Server Executor (server-side extension)") must be
installed. The extension is available from the pre-registered KNIME Analytics
Platform update site. To install it run the KNIME Analytics Platform instance that
is intended to be the executor and navigate to File → Install KNIME Extensions…
and select KNIME Executor connector under KNIME Server Executor (server-side
extension). Finally, click on "next" and follow the instructions.
2. Install KNIME Server Executor: This will install a new KNIME Server Executor, and
will result in several additional steps that must be followed.
3. Disable server-side workflow execution: This option means that workflows cannot
be executed on KNIME Server.
By default, the KNIME Server Workflow Repository is created within the KNIME Server
installation folder. It is possible to use a different location (e.g. on another hard drive) or an
existing folder. In case the folder exists, the installer will not modify the folder, assuming that
you pointed it to the workflow repository of a previous installation.
If you performed the installation without the license file, you can simply copy the KNIME
Server license file into the <knime-server-repository>/licenses folder. The file name must
end with .xml, and there is no need to restart the server after adding the license file.
The Context Root (CONTEXT) is used to define the KNIME WebPortal URL. All WebPortal
functionality will be available at:
http://HOSTNAME:PORT/CONTEXT
Autoinstall file
Once successfully executed, the KNIME Server installer generates a file that can be saved.
The xml file is called auto-install.xml and describes all parameters that were set during the
installation process. In case you want to perform an installation using the same parameters
you can simply run:
<tomee folder>/bin/shutdown.sh
<tomee folder>/bin/startup.sh
<tomee folder>/bin/shutdown.bat
<tomee directory>/bin/startup.bat
or
apache-tomee.bat stop
apache-tomee.bat start
After restarting you should be able to access KNIME Server from both KNIME Analytics
Platform and KNIME WebPortal (in your web browser). More details can be found in the
KNIME Explorer User Guide and KNIME WebPortal User Guide.
The URL entered in the KNIME Analytics Platform mount point dialog is the same as for the
WebPortal and defaults to
http://<server>:8080/knime/
If you encounter problems please have a look at the log files (see section Log Files in the
KNIME Server Administration Guide for details).
In some cases it may take quite some time (up to several minutes) until the server responds
to requests on Linux systems. This is usually caused by insufficient entropy for the random
number generator used by Tomcat. A description on how to remedy this issue is included in
the KNIME Server Administration Guide
sudo cp -r <install-dir>/install-data/linux-runlevel-templates/systemd/. /
The folder includes the systemd service description for knime-server, a start script, and
a systemd override file that allows configuration of the service (such as file system
location or the userid under which the server should run).
2. Run
systemctl daemon-reload
3. Run
Adjust the settings in the editor that will open, and save the changes. Make sure that
the User specified in this file exists on the system. Otherwise startup will fail.
<install-folder>/install-data/linux-runlevel-
templates/sysvinit/Ubuntu/etc/init.d/knime-server
<install-folder>/install-data/linux-runlevel-
templates/sysvinit/Ubuntu/etc/default/knime-server
<install-folder>/install-data/linux-runlevel-
templates/sysvinit/Redhat/etc/init.d/knime-server
<install-folder>/install-data/linux-runlevel-
templates/sysvinit/Redhat/etc/default/knime-server
You may want to change the memory settings for when TomEE is started as a service:
2. Go to the "Java" tab and change the "Maximum Memory pool" value.
If you want to know more details, have a look at the Tomcat documentation which describes
this process in detail.
In places where the Tomcat documentation references "Tomcat7" executables, replace their
names with TomEE.x86.exe or TomEE.amd64.exe depending on your architecture.
The KNIME® trademark and logo and OPEN FOR INNOVATION® trademark are used by KNIME AG under license
from KNIME GmbH, and are registered in the United States. KNIME® is also registered in Germany.