Categories

Versions

You are viewing the RapidMiner Go documentation for version 9.5 -Check here for latest version

Install RapidMiner Go

Prerequisites

You need to have the following installed and running on your machine:

  • Docker >= v18.09
  • docker-compose >= 1.23

To read more how to install docker and docker-compose on your platform see:

You need to grant at least 8GiB memory to the Docker Engine for a decent performance.

Docker Images

The application is composed of several images:

  • rapidminer-automodel-routing:RoutingNGINX reverse proxy
  • rapidminer-automodel-rmid:RMID- authentication and authorization service
  • rapidminer-automodeler:RapidMiner Go- the automatic modeling and prediction service
  • rapidminer-automodel-job-container:Job Container- execution backend for RapidMiner Go
  • rapidminer-ui-event-tracking: EventTracking - analytics service

Each service can be customized by setting environment variables indocker-compose-services.yml.
For configuration options check the relevant sub-pages.

The images of for the individual services are available onDocker Hub

Compose

Pleasedownload and unzip the docker files here.

The full stack can be composed using two files:

  • docker-compose-infra.yml: contains all the infrastructural needs for the application stack
  • docker-compose-services.yml: contains all the services configured

To start the full stack execute the following steps:

  • Copy your RapidMiner Go license on your host intolicenses/rapidminer-auto-modeldirectory
  • Edit the.envfile and make sure it contains the following:
IMAGE_TAG=latest AUTH_SECRET=your_base64_encoded_secret BASE_URL=http://localhost:30000
  • IMAGE_TAG identifies the build versions to be used for composing.
  • AUTH_SECRET is the secret used for signing and validating the authentication tokens used by the applications -- it has to be a Base64 encoded string.
  • BASE_URL is the external base URL visible on the frontend - e.g. http://localhost:30000

Important:数据库和AMQ代理使用默认passwords. It is not recommended to use these in production. Follow the guide below tochange the default passwords.

  • if you have already installed a previous version of RapidMiner Go - stop and remove running containers, remove docker images of previous versions before proceeding
  • Executedocker-compose -f docker-compose-infra.yml up -d
  • Executedocker-compose -f docker-compose-services.yml up -d
  • Wait for ~2-3 minutes depending on your machine to have all the services available

检查个别应用程序的日志:

  • Executedocker-compose -f docker-compose-STACK.yml logs SERVICE_NAMEwhereSTACKis the postfix of the yml file's name andSERVICE_NAMEis the name of the service which logs you want to display (use compose yml's service names (which are the direct children ofservices:node, e.g.: rapidminer-automodeler)

To shut down the full stack:

  • First shut down services by executingdocker-compose -f docker-compose-services.yml down
  • Then shut down infrastructure viadocker-compose -f docker-compose-infra.yml down

Try

  • Open application on http://localhost:30000
  • Useadminandchangeitfor user/password

  • For creating additional users checkRMID docs

Changing the default passwords

You should change the default database passwords for usersrmidandcookieindocker-entrypoint-initdb.d/init-user-db.sh:

CREATE USER cookie WITH ENCRYPTED PASSWORD 'automodel_db_password'; ... CREATE USER rmid WITH ENCRYPTED PASSWORD 'rmid_db_password';

Then you should provide the same passwords by adding new environment variables to the services indocker-compose-services.yml:

rapidminer-automodeler: image: rapidminer/rapidminer-automodeler:${IMAGE_TAG} environment: ... DB_PASSWORD:  ... rapidminer-automodel-rmid: image: rapidminer/rapidminer-automodel-rmid:${IMAGE_TAG} environment: ... DB_PASSWORD:  ... rapidminer-ui-event-tracking: image: rapidminer/rapidminer-ui-event-tracking:${IMAGE_TAG} environment: ... DB_PASSWORD:  ...

The default database is PostgreSQL 9.6, exposed by default on port 5432 oflocalhost. Direct connections are possible via any database console or a tool such aspgAdmin. The default password can be changed indocker-compose-infra.yml

rapidminer-automodel-db: image: postgres:9.6.6 volumes: - rapidminer_automodel_dbdata:/var/lib/postgresql/data - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d environment: POSTGRES_PASSWORD: cookiepass POSTGRES_USER: cookie ports: - "5432:5432"

To further improve security, the ActiveMQ password should also be added as a new environment variable indocker-compose-infra.yml:

rapidminer-automodel-activemq: image: webcenter/activemq:5.13.1 environment: ... ACTIVEMQ_ADMIN_LOGIN: admin ACTIVEMQ_ADMIN_PASSWORD: admin ACTIVEMQ_OWNER_PASSWORD:  ... ports: - "8161:8161"

Then provide the same password as a new environment variable to services indocker-compose-services.yml:

rapidminer-automodeler: ... AMQ_PASSWORD:  ... rapidminer-automodel-job-container: ... AMQ_PASSWORD:  ...

An admin console is also exposed for ActiveMQ. Use theACTIVEMQ_ADMINcredentials to access the admin monitoring tool of ActiveMQ in your browser athttp://localhost:8161/admin/queues.jsp.