...
No Format | ||
---|---|---|
| ||
.
├── bin
│ ├── convert_map
│ ├── filemgr
│ ├── filemgr-client
│ ├── migrate_xml_policy
│ └── query_tool
├── etc
│ ├── filemgr.properties
│ ├── logging.properties
│ └── mime-types.xml
├── lib
│ └── *.jar
├── logs
│ ├── REMOVE.log
└── policy
├── core
│ ├── elements.xml
│ ├── product-type-element-map.xml
│ └── product-types.xml
├── geo
│ ├── elements.xml
│ ├── product-type-element-map.xml
│ └── product-types.xml
│
(additional policy subdirectories)
|
Please note, if you are using version 0.3 of OODT or earlier, the policy directory will look like this (with no subdirectories):
No Format | ||
---|---|---|
| ||
└── policy ├── elements.xml ├── product-type-element-map.xml └── product-types.xml |
Here is a brief description of each directory that you see listed:
...
Code Block | ||
---|---|---|
| ||
org.apache.oodt.cas.filemgr.catalog.lucene.idxPath=/usr/local/oodt/cas-filemgr/catalog org.apache.oodt.cas.filemgr.repositorymgr.dirs=file:///usr/local/oodt/cas-filemgr/policy/core org.apache.oodt.cas.filemgr.validation.dirs=file:///usr/local/oodt/cas-filemgr/policy/core org.apache.oodt.cas.filemgr.mime.type.repository=/usr/local/oodt/cas-filemgr/etc/mime-types.xml |
...
Server side metadata is generated by using java classes and the extractors that will be used are configured in the product-types.xml file in the chosen policy directory. You For this example configuration, you should have /usr/local/oodt/cas-filemgr/policy/core
as the policy directory, unless you're running version 0.3 or earlier of OODT, in which case you should have /usr/local/oodt/cas-filemgr/policy
as the policy directory.
Now would be a good time to have a quick look at the product-types.xml
file. It contains some critical information about what is going to happen when we ingest our first file into the repository.
...
If you're feeling curious, check out the other xml files in the /usr/local/oodt/cas-filemgr/policy/
directory subdirectories to get a better feel for how we define product types and elements. For a discussion of best practices w.r.t File Manager Policy, the reader is referred to Everything you want to know about File Manager Policy
...
A few more tools
Cameron Goodale as has written some useful command line tools aliases that are worth mentioning before we continue. See the following two web pages: https://issues.apache.org/jira/browse/OODT-306
BASH and TCSH shell tools for File Manager
...