...
The archetype is available at maven central. Here is the set of commands you would typically run.
Code Block |
---|
prompt>$ curl -so radix httphttps://svnraw.apachegithubusercontent.orgcom/repos/asfapache/oodt/trunk/mvn/archetypes/radix/src/main/resources/bin/radix | bash Or to source from the github repo: prompt> curl -s https://raw.githubusercontent.com/apache/oodt/trunk/mvn/archetypes/radix/src/main/resources/bin/radix | bash |
Code Block |
---|
prompt> mv oodt oodt-src; cd oodt-src; mvn package
prompt> mkdir ../oodt; tar -xvf distribution/target/oodt-distribution-0.1-bin.tar.gz -C ../oodt
prompt> cd ../oodt; ./bin/oodt start
prompt> ./resmgr/bin/batch_stub 2001
|
...
|
You should then edit the radix file replacing the parameters below with whatever you want.
The first command is the running of a maven archetype to make an oodt project. Inside of the RADIX script downloaded in the curl command is an mvn archetype generation command. That command has a number of parameters that the 1 liner radix script encapsulates. (parameters marked in italics below)
The groupId is a place to specify your company's namespace.
The artifactId is a place to specify a short name of your project.
The version indicates the initial version label for your project.
The oodt flag indicates the version of OODT that you want your project to be built on. N.B., this should most likely match the most recent version of OODT.
Code Block |
---|
prompt> mv oodt oodt-src; cd oodt-src; mvn install
prompt> mkdir ../oodt; tar -xvf distribution/target/oodt-distribution-0.1-bin.tar.gz -C ../oodt
prompt> cd ../oodt; ./bin/oodt start
prompt> ./resmgr/bin/batch_stub 2001 |
...
- The second command simply moves into the created oodt project directory where your source and configuration can be maintained and later can be placed into version control. Then creates the distribution of your OODT project using "mvn package"
- The third command merely untars the distribution into the created deployment directory
- The fourth command moves into the deployment directory and starts the OODT system.
- The fifth command launches batch stub on the port 2001.
...
If you want to manage your OODT RADiX distribution with Subversion.with Subversion.
Code Block |
---|
prompt> svn import <dataSystemName> http://your_repo_path/<dataSystemName>/trunk -m "Initial OODT Import" |
If you want to manage your OODT RADiX distribution with Git
Info | ||
---|---|---|
| ||
prompt> git init prompt> git add . prompt> git commit -a | ||
Code Block | ||
prompt> svn import <dataSystemName> http://your_repo_path/<dataSystemName>/trunk -m "Initial OODT Importimport" |
Default Deployment Structure
...
port
filemanager
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
FILEMGR_PORT=9000 export FILEMGR_PORT |
workflow
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
WFMGR_PORT=9001 export WFMGR_PORT |
...