Categories

Versions

You are viewing the RapidMiner Server documentation for version 9.0 -Check here for latest version

Configuring Radoop Proxy Security

RapidMiner Radoop makes it possible to connect to the Hadoop cluster via theRadoop Proxyservice, which can be installed along with RapidMiner Server. This guide explains how to establish secured connections between:

  • RapidMiner Studio and Radoop Proxy
  • Radoop Proxy and RapidMiner Server.

Creating a secure Radoop Proxy Connection

If you aim to establish anSSL-encryptedRadoop Proxy connection, please take the following steps:

  1. Find and open the proxy configuration file, which is located atradoop-proxy/proxy.propertiesin the RapidMiner Server installation directory by default.

  2. To enable SSL connections,sslEnabled=trueproperty setting is required. Furthermore, you have to define the private key by uncommenting (remove#character) and setting the following lines, like:

    • keystorePath=
    • keystorePassword=
  3. Create a newRadoop Proxy Connectionfrom RapidMiner Studioorfrom RapidMiner Server(for the latter option, make sure that Radoop extension isinstalledon RapidMiner Server).

Provide the location of Radoop Proxy server and RapidMiner Server credentials, andCheck Use SSL.

ClicktestTestto check whether the Radoop Proxy connection was configured correctly.

  1. Generate the keystores. Run the following commands (for further customization parameters, seeOracle documentation).

    keytool -genkeypair -alias server -keyalg RSA -keypass  -storepass  -keystore server-keystore.jks keytool -exportcert -alias server -storepass  -file server.cer -keystore server-keystore.jks keytool -importcert -v -trustcacerts -alias server -file server.cer -keystore client-trust-keystore.jks -keypass  -storepass  rm server.cer

    Note down all passwords, as they will be needed in the following steps.

  2. Find and open the proxy configuration file, which is located atradoop-proxy/proxy.propertiesin the RapidMiner Server installation directory by default.

  3. To enable SSL connections,sslEnabled=trueproperty setting is required. Furthermore, you have to define the generated private key of Radoop Proxy by uncommenting (remove#character) and setting the following lines, like:

    • keystorePath=keystore.jks
    • keystorePassword=

    Use the same password () that you provided in Step 1.

  4. Create a newRadoop Proxy Connectionfrom RapidMiner Studioorfrom RapidMiner Server(for the latter option, make sure that Radoop extension isinstalledon RapidMiner Server).

Provide the location of Radoop Proxy server and RapidMiner Server credentials.Check Use SSL, and fill in the required fields:

  • Keystore file:Insert the private keystore file (client-trust-keystore.jks) location here.
  • Keystore password:Type in theused in Step 1.

ClicktestTestto check whether the Radoop Proxy connection was configured correctly.

Establishing HTTPS connection between Radoop Proxy and RapidMiner Server

If HTTPS connection isconfiguredfor RapidMiner Server with a well-known certificate, you can make Radoop Proxy use the HTTPS port for authentication. To make these changes, open the proxy configuration file (radoop-proxy/proxy.propertiesin the RapidMiner Server installation directory) and find the two blocks after# authentication by RapidMiner serverline. Comment out the first block, and uncomment the second one (add and remove#signs, respectively):

# authentication by RapidMiner server #serverAuthenticationScheme=http #serverAuthenticationHost=localhost #serverAuthenticationPort=8080 #serverAuthenticationUrl=/api/rest/instance serverAuthenticationScheme=https serverAuthenticationHost=localhost serverAuthenticationPort=8443 serverAuthenticationUrl=/api/rest/instance

Make sure that the property values match your RapidMiner Serverconfiguration.