Configurations

Following configurations are required for Rserve in remote nodes where Open-R engine is installed:
  1. Create Rserv.conf file in /etc and make following entries:
    workdir /tmp/Rserv
    pwdfile /etc/Rserveusers
    remote enable
    auth enable
    plaintext enable
    port 6311
    maxsendbuf 0
    interactive no
    For more details, refer the link: http://rforge.net/Rserve/doc.html.

    Note:

    The user who starts the R Server should have the read-write permissions for the working directory.
  2. Set the Environment variables for R:
    JAVA_HOME={java home path}
    JAVA_BIN={java bin path}
    LD_LIBRARY_PATH={LD library path}
    Note the following:
    • If RJDBC connection is required, copy the ojdbc<version>.jar file to the lib directory in the remote file path configured. The version of ojdbc<version>.jar file is based on the Java version.
    • The lib and conf folders have to be created under the path mentioned in <REMOTE_FILE_PATH> tag.
    • For the Kerberos authentication the required jaas-conf, krb-conf and keytab files have to be placed under conf folder. The jaas-conf file name should be same as that of the keytab file name. It should be placed under the conf folder in the read-write path in remote machine or in the $FIC_DB_HOME/conf folder in case of local executions. The krb5 conf file name should be same as the name configured in the table.
    • Hive and Hadoop related jars should be copied to the lib folder mentioned in the <REMOTE_FILE_PATH> tag.