Documenting here, steps followed in installing Globus Toolkit - 4.2 version on stage.uabgrid.uab.edu

  • As root on stage, undo the symbolic link to globus-4.0.5 and unset $GLOBUS_LOCATION
    cd /opt
    unlink globus
    unset GLOBUS_LOCATION
    
  • Create a new directory for 4.2 version, symbolic link (globus) and give the ownership to the globus user
    cd /opt
    mkdir gt42
    ln -s gt42 globus
    chown globus:globus gt42 
    
  • Download and extract the globus-4.2 toolkit. Here, I have downloaded both the source and binary distribution for gt-4.2, but installing the gt-4.2 from source distribution
    su - globus
    cd dist
    wget http://www-unix.globus.org/ftppub/gt4/4.2.0/installers/src/gt4.2.0-all-source-installer.tar.bz2
    wget http://www-unix.globus.org/ftppub/gt4/4.2.0/installers/bin/gt4.2.0-x86_rhas_4-installer.tar.gz
    bunzip2 gt4.2.0-all-source-installer.tar.bz2
    cd ../src
    tar -xvf ../dist/gt4.2.0-all-source-installer.tar
    tar -xvzf ../dist/gt4.2.0-x86_rhas_4-installer.tar.gz
    
  • Before building the toolkit, check build environment i.e., check for PATH and LD_LIBRARY_PATH environment variables
    PATH=$JAVA_HOME/bin:$ANT_HOME/bin:/bin:/usr/bin
    unset LD_LIBRARY_PATH
    export GLOBUS_LOCATION=/opt/globus
    
  • Ready to begin the build
    cd ~/src/gt4.2.0-all-source-installer
    ./configue --prefix=$GLOBUS_LOCATION
    make | tee build.log
    make install | tee install.log
    
  • Creating Reliable File Transfer (RFT) Service The initial setup for RFT has already been done on stage, i.e., creating a mysql database called rftdatabase and tables http://dev.uabgrid.uab.edu/uabgrid-stage/wiki/BuildTheStage#ConfiguretheRFTService.
    All that remained to be changed was the patch to be applied to $GLOBUS_LOCATION/etc/globus_wsrf_rft/jndi-config.xml as given here: http://www.globus.org/toolkit/docs/4.2/4.2.0/data/rft/admin/rft-admin-mysql.html
    Edit $GLOBUS_LOCATION/etc/globus_wsrf_rft/jndi-config.xml and change the following values:
     * for connectionString, change jdbc:postgresql://host/rftDatabase to jdbc:mysql:///rftDatabase
     * for driverName, change org.postgresql.Driver to com.mysql.jdbc.Driver
     * and change the userName and password to whatever was set when users were created for MySQL.
    

So, the following patch was applied to $GLOBUS_LOCATION/etc/globus_wsrf_rft/jndi-config.xml

patch --ignore-whitespace --backup $GLOBUS_LOCATION/etc/globus_wsrf_rft/jndi-config.xml << EOF
80c80
<            org.apache.derby.jdbc.EmbeddedDriver
---
>            com.mysql.jdbc.Driver
88c88
<            jdbc:derby:GLOBUS_LOCATION/var/rftDatabase
---
>            jdbc:mysql:///rftDatabase 
EOF

References