Skip to content

Getting DRAT 1.0 working with OODT 1.9

Chris Mattmann edited this page Oct 6, 2019 · 7 revisions

There are some issues with Apache OODT 1.9 mainly that it makes Avro the silent default on all the client/server communication which makes DRAT 1.0 fail in weird ways. Here is a running log of updates to DRAT 1.0 to make it work in the meanwhile:

  1. edit tomcat/conf/catalina.properties and set the File Manager client to be the XmlRpc one
  2. edit tomcat/webapps/opsui/WEB-INF/lib/cas-{workflow|resource}-1.9.jar and edit {workflow|resource}.properties to change the client class to the XmlRpc one
  3. edit resmgr/bin/resmgr and make it look like
    $JAVA_HOME/bin/java -Djava.ext.dirs=${CAS_RESMGR_HOME}/lib \ -Djava.util.logging.config.file=${CAS_RESMGR_HOME}/etc/logging.properties \ -Dlog4j.configurationFile=${CAS_RESMGR_HOME}/etc/log4j2.xml \ -Dorg.apache.oodt.cas.resource.properties=${CAS_RESMGR_PROPS} \ org.apache.oodt.cas.resource.system.ResourceManagerMain --portNum $SERVER_PORT & echo $! >${RUN_HOME}/cas.resmgr.pid
  4. edit tomcat/webapps/proteus/WEB-INF/lib/cas-{workflow|resource}-1.9.jar and edit {workflow|resource}.properties to change the client class to the XmlRpc one
  5. add the following properties to workflow/etc/workflow.properties
      # rpc configuration, uncomment the avro implementations to use AvroRPC
        filemgr.client=org.apache.oodt.cas.filemgr.system.rpc.XmlRpcFileManagerClientFactory
    
  6. edit {filemgr|workflow|resmgr}/etc/*.properties, and make sure to select the XmlRpc version of the server in the configuration properties.
  7. edit workflow/lib/cas-{workflow|resource}-1.9.jar and edit {workflow|resource}.properties to change the client class to the XmlRpc one
  8. since DRAT scripts were updated to use Python3, forgot to run 2to3 on bin/dratstats.py. So, run
    2to3 bin/dratstats.py > out.patch
    patch -p0 bin/dratstats.py < out.patch
  9. edit bin/drat and its index() function to set the following property:
    -Dfilemgr.client=org.apache.oodt.cas.filemgr.system.rpc.XmlRpcFileManagerClientFactory \
  10. replace wmgr-client in workflow/bin with https://raw.githubusercontent.com/apache/oodt/master/mvn/archetypes/radix/src/main/resources/archetype-resources/workflow/src/main/resources/bin/wmgr-client
  11. edit bin/dratstats.py and change the XML-RPC import to be Python3 compatible, and then change the function that instantiates the XML-RPC client to check for jobs in queues on line 186
Clone this wiki locally