7.00.02.01 - Preparing the R Sandbox Root Area - Aster R

Teradata Aster® R User GuideUpdate 3

prodname
Aster R
vrm_release
7.00.02.01
created_date
December 2017
category
Programming Reference
User Guide
featnum
B700-1033-700K
  1. Copy the .ini files to the root folder.
    # cp /opt/aster/third-party/R/usr/local/lib/stage/clients-odbc-linux64/unixODBC/setup/odbc.ini /opt/aster/third-party/R/root/
    # cp /opt/aster/third-party/R/usr/local/lib/stage/clients-odbc-linux64/unixODBC/setup/odbcinst.ini /opt/aster/third-party/R/root/
    # cp /opt/aster/third-party/R/usr/local/lib/stage/clients-odbc-linux64/unixODBC/setup/aster.ini /opt/aster/third-party/R/root/.aster.ini
  2. Modify the .aster.ini file with the content shown here.
    [driver]
    DriverManagerEncoding=UTF-32
    DriverLocale=en-US
    LogLevel=0
    ErrorMessagesPath=/usr/local/lib/stage/clients-odbc-linux64/ErrorMessages
    ODBCInstLib=/usr/lib/libodbcinst.so
  3. Modify the odbc.ini file with the content shown here.
    Replace the host and database information for each users' environment.
    [ODBC Data Sources]
    AsterDSN=AsterDriver
    TestEnv1=AsterDriver
    [AsterDSN]
    Driver=AsterDriver
    SERVER=192.168.100.100
    PORT=2406
    DATABASE=beehive
    UID=db_superuser
    PWD=db_superuser
  4. Modify the odbcinst.ini file with the content shown here.
    [AsterDriver]
    Driver=/usr/local/lib/stage/clients-odbc-linux64/unixODBC/lib/libAsterDriver.so
    IconvEncoding=UCS-4LE
  5. Clone the .ini files to the worker nodes.
    # cd /opt/aster/third-party/R/root/
    
    # ncli node clonefile *.ini
    # ncli node clonefile .*.ini
    
    # chmod og+rx /opt/aster/third-party/R/root
  6. Update /etc/profile on every node with the ODBCSYSINI location.
    # ncli node runonall "cp /etc/profile /etc/profile.org"
    # ncli node runonall "echo 'export ODBCSYSINI=/root' >>/etc/profile"