-
Notifications
You must be signed in to change notification settings - Fork 1
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:
- edit
tomcat/conf/catalina.properties
and set the File Manager client to be the XmlRpc one - 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 - 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
- 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 - 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
- edit {filemgr|workflow|resmgr}/etc/*.properties, and make sure to select the XmlRpc version of the server in the configuration properties.
- edit
workflow/lib/cas-{workflow|resource}-1.9.jar
and edit{workflow|resource}.properties
to change the client class to the XmlRpc one - since DRAT scripts were updated to use Python3, forgot to run
2to3
onbin/dratstats.py
. So, run
2to3 bin/dratstats.py > out.patch
patch -p0 bin/dratstats.py < out.patch
- edit
bin/drat
and itsindex()
function to set the following property:
-Dfilemgr.client=org.apache.oodt.cas.filemgr.system.rpc.XmlRpcFileManagerClientFactory \
- replace
wmgr-client
inworkflow/bin
withhttps://raw.githubusercontent.com/apache/oodt/master/mvn/archetypes/radix/src/main/resources/archetype-resources/workflow/src/main/resources/bin/wmgr-client
- 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