APACHE OODT

Apache OODT Development with IntelliJ IDEA

Setting up Apache OODT development environment with IntelliJ IDEA

Image created by the author

0. Install and configure IntelliJ IDEA and Apache Tomcat

First of all, we should have IntelliJ IDEA and Apache Tomcat installed and configured on our computers. To download the IntelliJ IDEA, head over to the Jetbrains website. , download and run the suitable installer for your operating system. After it’s installed, open the project in the IntelliJ IDEA.

Tomcat installation welcome page — Screenshot by author

1. Build and run the file manager component

File manager is one of the main components in Apache OODT. To run it, locate oodt/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/FileManagerServerMain.java in the IDE. Then click on the green arrow that is left to the main method of the Java class, to run the file manager server.

Run the file manager class from within the IntelliJ IDEA
-D org.apache.oodt.cas.filemgr.properties=F:\oodt\filemgr\src\main\resources\filemgr.properties
Modified run configuration for file manager component in IntelliJ IDEA

2. Build and run the workflow manager component

The workflow manager is another main component of Apache OODT. It helps non-programming people to provision workflows to process files. To run it, first, locate the file oodt/workflow/src/main/java/org/apache/oodt/cas/workflow/system/WorkflowManagerStarter.java from within the IDE.

-Dorg.apache.oodt.cas.workflow.properties=<your_project_location>\workflow\src\main\resources\workflow.properties

3. Build and run the resource manager component

The resource manager is the OODT component that is responsible for the execution, monitoring, and tracking of jobs, storage, and networking resources for an underlying set of hardware resources. To run it, first, locate the file oodt/workflow/src/main/java/org/apache/oodt/cas/resource/system/ResourceManagerMain.java from within the IDE.

-Dorg.apache.oodt.cas.resource.properties=<your_project_location>\resource\src\main\resources\resource.properties

4. Build and run the REST APIs

The webapp directory consists of the REST APIs for the main OODT components. The existing OPSUI and the new React. js-based OPSUI consumes these APIs to display information and execute tasks such as fetching ingested products, executing workflows, etc.

  • wmservices - REST API for the workflow manager OODT component
FMprod build success message — screenshot by the author

Wrapping up

In this post, we discussed in detail, how to set up the development environment for Apache OODT with Tomcat and IntelliJ IDEA. Special thanks to Imesha Sudasingha and Nadeeshan Gimhana for their guidance. I hope this post was useful to you. If you encounter any problems while following this guide, please inform me in the responses.

--

--

Software Engineer at WSO2 | Tech Blogger | Open-source Enthusiast - Views and opinions are strictly my own

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavindu Lakshan

Software Engineer at WSO2 | Tech Blogger | Open-source Enthusiast - Views and opinions are strictly my own