RapidMiner Scoring Agent standalone deployment
RapidMiner Scoring Agent's infrastructure can be installed in several different ways:
- as a standaloneDocker image,
- as part of adocker-compose-based deployment, or
- usingKubernetes.
Here we discuss an additional alternative, not involving Docker or Kubernetes, that may be more suitable for edge computing or other cases where resources are limited.
The starting point is one of several ZIP files, depending on the standalone operating system, that can be found on
- my.www.turtlecreekpls.comunder the headingDownloads > RapidMiner Scoring Agent, or
- Altair One Marketplace
Instructions
If it is not yet installed, install Java 11 (e.g., OpenJDK 11) on the standalone operating system.
Unpack the RapidMiner Scoring Agent ZIP file and notice the following files and folders:
- README.md- contains additional detailed instructions
- bin/migrate-home- a shell script tomigrate from version 9 to version 10
- bin/rapidminer-scoring-agent- a shell script to start the scoring agent
- dist/linux-service/- (Linux only) a folder containing systemd service files
- home/config/agent.properties- a file that configures scoring agent options
- home/deployments/- a folder for your RapidMiner deployments, in ZIP format
- home/resources/extensions/- a folder for extensions
- home/resources/licenses/- a folder for licenses
Install / configure alicense.
The default
license.mode
islicense.mode=ALTAIR_STANDALONE
If you wish to use a RapidMiner license, set the following property inhome/config/agent.properties
license.mode=RAPIDMINER
Choose one of the following:
ALTAIR_STANDALONE
- Inhome/config/agent.properties, uncomment and set the path for the .dat node lock license file:#license.altair.standalone.license-file=${license.location}/altair_standalone.dat
ALTAIR_UNIT
- see the details inhome/config/agent.propertiesRAPIDMINER
(Scoring Agent license) - Frommy.www.turtlecreekpls.com, underLicenses > Scoring Agent, you can install the Scoring Agent license as:home/resources/licenses/rapidminer-scoring-agent/scoring-agent.lic
RAPIDMINER
(RapidMiner Server license) - Frommy.www.turtlecreekpls.com, underLicenses > AI Hub / Server, you can install the RapidMiner Server license as:home/resources/licenses/rapidminer-server/server.lic
In this case, you also need to uncomment the following line inhome/config/agent.properties:
#scoring-agent.enable-server-license = true
(optional) Install extensions.
If you need them, simply download extensions from RapidMiner'smarketplaceand place them into
home/resources/extensions
They will be picked up and initialized after a successful restart of the application.
You can also remove extensions, please be sure to restart the application in that case as well.
Install the RapidMiner ZIP files you wish to deploy.
To create a deployment ZIP, follow the instructions inCreate a deployment file from Projects. The result is a ZIP file that you will place inhome/deployments, for example a deployment called iris.zip:
home/deployments/iris.zip
with the following contents:
repository repository/ScoreIrisData.rmp repository/IrisModel.rmmodel config.json README.md
Notice that theconfig.jsonfile identifies the
basePath
(in this case, "iris") and all the callable processes in the deployment (in this case "ScoreIrisData").Run the shell script to start the scoring agent.
Once you have configured the scoring agent and inserted your deployment ZIP, it's time to start the scoring agent!
sh bin/rapidminer-scoring-agent
Request results.
In general, scoring works as described inScore data.
Using our iris.zip deployment as an example, you can call the ScoreIrisData process as follows:
curl - x \ - h”内容类型:应用cation/json" \ --data @iris.json \ http://localhost:8090/api/v1/services/iris/scoreirisdata
with the following example fileiris.json:
{ "data":[ { "a1": 5.1, "a2": 3.5, "a3": 1.4, "a4": 0.2 } ] }
Note that in JSON files,trailing commas are not permitted.