Managing RapidMiner Server on Linux with systemd

BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
edited December 2018 in Knowledge Base

About systemd

Modern Linux systems use the systemd service to manage services (daemons). RapidMiner Server used to ship a startup file for the older init.d system which was supported by systemd, but on a new server, admins prefer to use systemd integrated method. 


Solution

We created a systemd configuration file which can be downloaded and edited for your configuration. It is attached to this article (downloadable zip file at the bottom).

Download it and make sure that you use an editor that doesn't change the line endings to Windows format.

Edit the file and change the User, Group and ExecStart lines to your desired configuration. 

When you're done, put the file into /etc/systemd/system/ on the server.

Some useful commands:

# Starts the server
systemctl start rapidminer-server

# Status of the service. You would see error messages here.
systemctl status rapidminer-server

# Stop the server
systemctl stop rapidminer-server

# Start the server on system start automatically
systemctl enable rapidminer-server

We hope that this will help you. If not, please post a reply.

Comments

  • ershadalibaig_mershadalibaig_m Member Posts: 4 Contributor I

    Please share the setp by step approach to install the RM service in Linux.

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn

    Hi @ershadalibaig_m!

    What are you missing? 

    The process is like this: 

    1. Best practice is to create a new user on the Linux server for RapidMiner Server. E. g. "rmserver". Log in as this user.

    2. Unpack the downloaded rapidminer-server zip somewhere and call the setup script. If you're on a headless server, use ssh -X so you can run the graphical installation. (The other, non-graphical way is documented here.)

    3. When the installation is done, you can use the service file from the first entry on this page. Put it in /etc/systemd/system and edit it to match your setup.

    4. Issue "systemctl start rapidminer-server" to start your Server process. It will automatically start your default job agent.

     

    For additional job agents and the scoring agent, I'm posting service files here, too.

     

    Regards,

    Balázs

Sign In or Register to comment.