Configuring R Server

To use the R Execute operator, you must first configure the R server.

For more information, see "R Execute" in the TIBCO® Data Science Team Studio User's Guide.

Prerequisites

You must be an administrator to edit preferences.

Procedure

  1. From the menu, click Actions > Preferences.
  2. Select R Server.

  3. Provide the following information.
    Option Description
    R Server Host IP address for the R server host computer.
    R Server Port Port number for the R server host computer. The default port is 2553.

    The port setting must match the entry for the R Server Port in the file application.conf located in the directory where the R Connector is installed.

    • Default port: 2553.
    • To change this port while the R Connector java process is already running, you must find the process ID and kill it, change the port number in application.conf, and run all services again using ./start_services.sh.
    • Restarting the R-side process (Rserve) is not necessary in this case.
    • Only then can you change the setting in the R Server Port dialog box in the Team Studio user interface.

    Do not change the port unless there are specific reasons to change it.

    Important: Changing the host and port settings results in an update within Team Studio without the need to restart the Team Studio web server.
    However, because there may be open connections to a previously selected R server with a different host and port, it's important to make sure that all the important workflows that contain R Execute operators are not currently running, or if they are, that it is OK for them to fail and for the user to restart them.
    • The moment the user starts running a new R Execute Operator, Team Studio checks to determine whether the R Server host and port changed.
    • If the host and port changed, the currently-running flows that are pointing to a different server are terminated, because Team Studio is set up to handle one R Server at a time.

    You might not need to restart Team Studio, but make sure that users are not currently running R Execute operators while you are changing the R Server host and port.

  4. Click Save to save changes.
    To return to default values, click Restore.
    Caution: If the R server is behind NAT, make sure to use the R server's hostname instead of the IP address, and configure the hostname in the application.conf file of the alpine-r-connector.