KNIME Analytics Platform is the leading open solution for data-driven innovation, helping you discover the potential hidden in your data, mine for fresh insights, or predict new futures. Our enterprise-grade, open source platform is fast to deploy, easy to scale, and intuitive to learn.
The tools provided in this repository will help you set up your KNIME Analytics Platform SDK in order to work with the source code of our plug-ins or develop new extensions for KNIME Analytics Platform. If you are not interested in development and prefer to simply download and try KNIME Analytics Platform right now, then click here.
Please note: We are currently in the process of publishing more of our open-source projects on Bitbucket and GitHub. Stay tuned!
KNIME Analytics Platform is built on Eclipse, employing its wealth of functionality in a variety of ways. A key concept behind Eclipse is its use of plug-ins, which can be added to an existing installation to provide additional functionality. In order to develop custom functionality to extend KNIME Analytics Platform, you first have to populate your local target platform with all the required dependencies. A target platform defines a set of plug-ins that can be used as dependencies by projects in your workspace.
The target platform is different for every release, so you must select the correct branch of knime-sdk-setup
. For example for developing
nodes that are compatible with the 3.6 release, checkout the branch releases/2018-07
and select the file KNIME-AP.target
. If you want to develop against the latest nightly build, checkout the master branch and use KNIME-AP.target
from there. However, bear in mind that extensions developed against nightly may not work in
releases installations due to changed and/or missing API.
This section is split into four parts General Setup
, Develop Nodes
, Exploring KNIME Analytics Platform Source Code
and Contribute to KNIME Analytics Platform Source Code
. Please follow the instructions in General Setup
first. Also, in our instructions we use the Eclipse Git integration (EGit) to work with Git, however, you can use any other Git client as well.
- In case you haven't installed Java, please download and install Java SE Development Kit 8 and restart your computer.
- Download and install the latest version of Eclipse for RCP and RAP Developers. Make sure you are using at least version 4.7.x.
Install Git with LFS support:
- Windows: Eclipse 4.7 already comes with a Git installation. In case you want to install Git manually, please follow https://git-scm.com/download/win. Git LFS should be part of the Git installation. If Git LFS is missing, please install it from https://git-lfs.github.com/.
- Linux: Git should be part of the standard repositories. If Git LFS is missing, get it from https://help.github.com/articles/installing-git-large-file-storage/#platform-linux.
- macOS: https://git-scm.com/download/mac and https://git-lfs.github.com/.
- Start Eclipse.
- Use the Eclipse Git integration (EGit) (pre-installed with Eclipse 4.7.x) to clone this repository (knime-sdk-setup) into your Eclipse workspace. Go to
File → Import → Git → Projects from Git File → Clone URI
. Enterhttps://github.com/knime/knime-sdk-setup
as URI and proceed. Next, select the branches you want to clone. Select all branches starting withreleases/
and themaster
branch. Next, select the initial branch you want to work with (e.g.master
, seeDevelopment Notes
above). ChooseImport existing Eclipse projects
. In a last step, select all three projects (org.apache.xmlbeans
,org.knime.sdk.setup
andorg.knime.example.node
) and pressFinish
. - In the imported
org.knime.sdk.setup
project, you find three target platform definition files (ending with.target
). A target definition defines the set of KNIME Extensions and Integrations which will be available when starting your KNIME Analytics Platform development version (seeLaunch KNIME Analytics Platform
).KNIME-AP.target
comprises a minimal KNIME Analytics Platform installation, whileKNIME-AP-complete.target
contains all KNIME Extensions and Integrations. You can simply ignoreKNIME-AP-complete-internal.target
. - Double-click on the target platform definition you want to use for development. If in doubt, use
KNIME-AP-complete.target
. Note: Resolving the target platform the first time takes a while. You can monitor the progress at the bottom right corner of your Eclipse. - Now click Set as Active Target Platform (upper-right corner) and wait until Eclipse has resolved and activated the target platform. Important: Resolving the target platform definition may take a while.
In case you didn't select KNIME-AP-complete.target
or you want to add third party extensions:
- Adding Plug-ins From KNIME Analytics Platform Update Site: You can simply edit the existing update-site entries in the selected target definition and add more extensions as needed.
- Third Party Update-Sites: If you need additional plug-ins from third party update-sites, you can edit the software sites in the target definitions. For example you can add the update-sites from Community Contributions Website.
KNIME Analytics Platform
launch configuration is now available to you in the debug and run configuration dialogs as an Eclipse application. The run configuration starts a new KNIME instance with all KNIME Analytics Platform Extensions in the target platform and your local workspace. This launched instance can be used for testing your custom functionality. All of the plug-ins available in your workspace take precedence over the plug-ins in the target platform. (Note: if the launch configuration is missing,Right-click
onKNIME Analytics Platform.launch
and selectRun As → KNIME Analytics Platform
).- The launch configuration uses 2GB of available RAM. If you want to use a different amount, change the value of the
-Xmx2g
VM argument in the Arguments tab of the launch configuration. - Starting KNIME Analytics Platform from Eclipse the first time may take some time (often > 5min), as Eclipse is resolving all bundle dependencies. All subsequent start-ups will be considerably faster.
- The project
org.knime.example.node
you imported in theGeneral Setup
contains an example node implementation that you can use as the basis for your own node development. - Alternatively, you can install the KNIME New Node Wizard into your Eclipse Installation from our Update site (Category: KNIME Development).
- If you want to work with the source code of KNIME Analytics Platform or a related extension, simply clone and import the repository of interest (e.g. https://github.com/knime/knime-core) and import the plug-ins as Java projects into your Eclipse workspace, similiar to
General Setup - Eclipse Setup
(File → Import → Git → Projects from Git File → Clone URI
). - Projects imported into the workspace take precedence over plug-ins in the target platform.
- In case you experience compile errors such as
The type org.dmg.pmml.* cannot be resolved
orThe import org.dmg.pmml.* cannot be resolved
please close or remove the projectorg.knime.core.pmml
. This project contains auto-generated classes only and is already part of the target platform.
- Please read and sign our Contributor License Agreement such that we can accept your
Pull Requests
.
Our API-Baseline ensures that we don't break existing KNIME API and stay backwards-compatible:
- Go to
Window → Preferences → Plug-in Development → API Baseline and Add Baseline...
- Select
A target platform
- Select
KNIME Analytics Platform (3.x release)
(which is in theorg.knime.sdk.setup
project) - Click Refresh
- Give the baseline a meaningful name (e.g.
KNIME Analytics Platform (3.x release)
) and clickOK
Do you have questions regarding the development of KNIME Analytics Platform? Reach out to us in our Forum.
If you have developed an extension of general interest and you want to make it available to the KNIME Community, we are happy to support you! Contact us via our Community Contributions Website.