Difference between revisions of "Install and Configure THREDDS Data Server"

From Gcube Wiki
Jump to: navigation, search
Line 14: Line 14:
 
In D4Science infrastructure, the following configuration is recommended :
 
In D4Science infrastructure, the following configuration is recommended :
  
*Catalog on separate disk :  
+
*Setting the catalog directory :  
 
**Symbolic link
 
**Symbolic link
 
***$TOMCAT_HOME/content -> /data/content
 
***$TOMCAT_HOME/content -> /data/content
Line 20: Line 20:
 
***THREDDS_CONTENT_ROOT=$TOMCAT_HOME/content
 
***THREDDS_CONTENT_ROOT=$TOMCAT_HOME/content
 
***JAVA_OPTS="-Dtds.content.root.path=$THREDDS_CONTENT_ROOT $JAVA_OPTS"
 
***JAVA_OPTS="-Dtds.content.root.path=$THREDDS_CONTENT_ROOT $JAVA_OPTS"
 +
 +
==Thredds Catalog configuration==
 +
Once Thredds is deployed and the containing tomcat instance is started, the webapp creates a basic configuration under $THREDDS_CONTENT_ROOT/thredds.
 +
The following files in such directory need to be replaced with the ones in shared workspace folder https://goo.gl/ct28Jn :
 +
 +
*catalog.xml
 +
*threddsConfig.xml
 +
 +
==Configuring as SmartGears Application==
 +
In order to enable SmartGears to correctly handle the web application, the gcube-app.xml file must be present under $TOMCAT_HOME/webapps/thredds/WEB-INF location. A valid copy of such file can be retrieved in shared workspace folder https://goo.gl/ct28Jn.

Revision as of 16:31, 5 April 2017


THREDDS is a web server that provides metadata and data access for geospatial datasets.Purpose of this page is to explain how to configure a GeoNetwork service instance in order to fulfill the needs of gCube environment. Please refer to third party's website for further details.

Installation

Environment prerequisites :

  • JRE 7+
  • Tomcat 7+

Suggested environment : SmartGears installation.

Tomcat configuration

In D4Science infrastructure, the following configuration is recommended :

  • Setting the catalog directory :
    • Symbolic link
      • $TOMCAT_HOME/content -> /data/content
    • Set JRE property :
      • THREDDS_CONTENT_ROOT=$TOMCAT_HOME/content
      • JAVA_OPTS="-Dtds.content.root.path=$THREDDS_CONTENT_ROOT $JAVA_OPTS"

Thredds Catalog configuration

Once Thredds is deployed and the containing tomcat instance is started, the webapp creates a basic configuration under $THREDDS_CONTENT_ROOT/thredds. The following files in such directory need to be replaced with the ones in shared workspace folder https://goo.gl/ct28Jn :

  • catalog.xml
  • threddsConfig.xml

Configuring as SmartGears Application

In order to enable SmartGears to correctly handle the web application, the gcube-app.xml file must be present under $TOMCAT_HOME/webapps/thredds/WEB-INF location. A valid copy of such file can be retrieved in shared workspace folder https://goo.gl/ct28Jn.