Preparing the R Sandbox Root Area - Aster R

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software
  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"