You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

The CAS-File Manager supports a tool to export the metadata catalog from one file manager to another filemanager. This document describes how to perform this process.

Requirements

  1. Two file-manager instances running (presumably on different ports, on same or different machines)
  2. Common product-type policy existing on both file-manager instances. NOTE - you can specify the transfer of only specific product types, so it is not necessary to have all of the policy between two file manager instances be identical)

See import/export tool usage

cd $FILEMGR_HOME/bin
java -Djava.ext.dirs=../lib org.apache.oodt.cas.filemgr.tools.ExpImpCatalog

Running the transfer

The below example shows how to copy the entire metadata contents of the ‘GenericFile’ product type, from a source FileManager to a destination FileManager.

NOTE - The funny syntax of the value for the ‘--types’ argument – the special characters are required, and need to be escaped

NOTE - The source filemanager is set to run on port 9000, and the destination is set to run on 9009 – this is entirely dependent on your own setup!

java -Djava.ext.dirs=../lib org.apache.oodt.cas.filemgr.tools.ExpImpCatalog --source http://localhost:9000 --dest http://localhost:9009 --types GenericFile\|urn\:oodt\:GenericFile
  • No labels