Metacat UNIX Installation Instructions
|
|||||||
KNB Home | Data | People | Informatics | Biocomplexity | Education | Software |
***Disclaimer*** |
These installation instructions are meant for a systems administrator/DBA or someone who is an advanced computer user. They are NOT meant for the average computer user. Please realize that by executing these instructions, you may have to trouble shoot many advanced issues yourself. |
Pre-Installation |
Minimum Requirements Installing Metacat requires a server running an SQL92 compliant database (Oracle 8i recommended) with at least 128MB RAM, and a Pentium III class processor or higher. The amount of disk space required depends on the size of your RDBMS tablespace (which should be at least 10 MB, however Metacat itself requires only about 1 MB of free space after installation. These instructions assume a Linux environment but may work on other UNIX type environments, however this has not been tested. Additional Required Software The server on which you wish to install Metacat must have the following software installed and running correctly before attempting to install Metacat.
|
Aditional Software Setup |
Java You'll need a recent Java SDK; j2sdk1.4.2 or later is required. We haven't tested with any of the 1.5.x versions yet, so probably best to stay with 1.4.x. Make sure that JAVA_HOME environment variable is properly set and that both java and javac are on your PATH. Oracle 8i or Postgres Oracle: lsnrctl startYour instance should have a table space of at least 5 MB (10 MB or higher recommended). You should also have a username specific to Metacat created and enabled. This user must have most normal permissions including CREATE SESSION, CREATE TABLE, CREATE INDEX, CREATE TRIGGER, EXECUTE PROCEDURE, EXECUTE TYPE, etc. If an action is unexplainably rejected by Metacat it is probably because the user permissions are not correctly set. Postgres:
Ant Ant is a Java based build application similar to Make on UNIX systems. It takes in installation parameters from a file in the root installation directory named "build.xml". The Metacat CVS module contains a default build.xml file that may require some modification upon installation. Ant should be installed on the system and the "ant" executable shell script should be available in the users path. We note that the current build is not working with Ant 1.6.x, so you'll need to use an earler version. We have successfully used Ant 1.5.1, 1.5.2, and some earlier versions. Tomcat Install Tomcat into the directory of your choice. The directory in which you install Tomcat itself will be referred to as the "$CATALINA_HOME". We recommend that you install Tomcat version 5.0. More details about Tomcat installation is available here. |
Once all of the prerequisite software is installed as described above, the installation of Metacat can begin. First you must have a current version of the source distribution of Metacat. You can get it two ways. Authorized users can check it out of the NCEAS CVS system. You'll need both the "metacat" module and the "utilities" module to be checked out in sibling directories. The command is as follows: mkdir knb-software cd knb-software cvs checkout -P metacat cvs checkout -P utilitiesOr you can download a gzipped tar file from this site. Edit
|
Property | Description | Default value and examples of other values |
tomcat | The tomcat property is the location in which tomcat is installed. | Default:
/usr/local/devtools/jakarta-tomcat
Example: C:/Tomcat5 |
tomcatversion | The tomcatversion property is the version of your Tomcat. You should put tomcat3, tomcat4, or tomcat5 here. | Default:
tomcat5
Example: tomcat5
|
webapps | The webapps property is the location in which your tomcat servlet contexts are installed. This is typically "TOMCAT_HOME/webapps", where TOMCAT_HOME is the same value that you entered for the 'tomcat' property above. | Default:
/var/www/org.ecoinformatics.knb
Example: C:/Tomcat5/webapps
|
context | The context property is the name of the servlet context in which you want Metacat to be installed. This will determine the installation directory for the servlet and many of the URLs that are used to access the installed Metacat server. | Default:
knb
Example: mycontext
|
server | The server property is hostname of for the server on which Metacat is running (note that you should not include the 'http://' in the server property). The server setting should include the port number appended to the end if Tomcat is running stand-alone (see example). | Default:
knb.ecoinformatics.org
Example: somehost.university.edu:8080
|
httpserver | httpserver is the plain HTTP address on which Metacat is running (note that you should not include the 'http://' in the httpserver property). The httpserver setting should include the HTTP plain port number appended to the end if Tomcat is running stand-alone (see example). | Default:
knb.ecoinformatics.org
Example: somehost.university.edu:8080
|
ldapUrl | URL to the LDAP server. The LDAP server is used in the default authentication module to authenticate and identify users of the system. To participate in the KNB network, you should leave this at the default. But it can be changed if you want to use a different directory of users. | Default:
ldap://ldap.ecoinformatics.org/dc=ecoinformatics,dc=org
|
database | Select the database to use for metadata storage.
Valid values are oracle , postgresql , or
sqlserver . Note that sqlserver support is minimal and
probably will not work without substantial changes on your part,
possibly including code changes. We have not revcently tested on
sqlserver.
|
Default:
oracle
Other possible values: postgresql
sqlserver
|
jdbc-connect | The JDBC connection string used to connect to the database. | Default:
jdbc:oracle:thin:@metacat.nceas.ucsb.edu:1521:knb
|
jdbc-base | The base directory for locating JDBC jar files (not needed for postgresql). | Default:
/usr/oracle/jdbc/lib
Example: C:/jdev10g/jdbc/lib |
user | The database user name that you set up to use Metacat. For example, an Oracle username. | Default:
knb
Example: metacatdb
|
password | The database password that you set up to use Metacat. | Default:
yourPasswordHere
Example: metacat123
|
datafilepath | The datafilepath is the directory to store data files. | Default:
/var/metacat/data
Example: C:/Tomcat5/data/knb/data
|
inlinedatafilepath | The inlinedatafilepath is the directory to store inline data that has been extracted from EML documents. | Default:
/var/metacat/inline-data
Example: C:/Tomcat5/data/knb/inlinedata
|
default-style | The default-style parameter defines the "style-set" that is to be used by default when the qformat parameter is missing or set to "html" during a query. It is set to "knb", which is one of the styles that ships with the default metacat distribution. Other possible settings are shown in the examples to the right. | Default:
knb
Examples:
|
administrators | The administrators parameter lists the accounts that are allowed to perform administrative actions such as rebuilding indices for documents. The list can can contain more than one account separated by colons. | Default:
uid=jones,o=NCEAS,dc=ecoinformatics,dc=org
Examples: uid=localadmin,o=ucnrs.org
|
authority.context | This is the context for the (Life Sciences Identifier) LSID authority. LSID support is an optional feature which can be configured to provide metacat access to LSID clients. For more information on LSID's see TDWG site. | Default: authority |
config.lsidauthority | This is the name of the LSID authority that this metacat should use. This authority needs to be defined as SRV record in a DNS. | Default: ecoinformatics.org Examples: esa.org or sulphur.ecoinformatics.org |
Note that the build file is preconfigured to install Metacat either using Oracle, PostgreSQL, or Microsoft SQL Server as a backend database. To change the database system, simply change the value of the 'database' property to be the name of the database target that you wish to use (either 'oracle', 'postgresql', or 'sqlserver').
Other properties inbuild.properties
that you can (but generally need not) change:Property | Description | Default value and examples of other values |
inst.cgi.dir | Installation directory for registry CGI scripts | Default:
/var/www/cgi-knb
|
cgi-prefix | Default:
http://knb.ecoinformatics.org/cgi-bin
|
|
knb-site-url | This is the URL to the web context root for the knb site. It is used for the qformat=knb skin only. | Default:
http://knb.ecoinformatics.org
|
forcereplicationwaitingtime | The waiting time before replication is forced to begin after uploading a package. The default value should usually suffice. | Default:
30000
|
cvsroot | CVS access to retrieve latest EML. Only used by developers in building the release. | Default:
Example:
|
Metacat has a number of additional settable properties in file
metacat/lib/metacat.properties
. Under most circumstances,
you will not need to modify this file because the properties of interest
to you can be controlled by editing build.properties
as
described above. To learn more about Metacat's additional properties,
see Metacat Properties File.
Note: When setting properties, DO NOT add a trailing slash [/] to the end of any paths that are specified. Metacat will not function correctly if you do so.