-
-
Notifications
You must be signed in to change notification settings - Fork 9
Migration 2015 02
François Prunayre edited this page Feb 23, 2015
·
17 revisions
- New user interface
- Multinode support which may be relevant for easier maintenance for EEA (Actually SDI publish 4 instances with one node "srv" but another setup could be one webapp with 4 nodes)
- Db configuration using JPA & Hibernate
- Not using API service for better HTTPS support (could be enable/disabled by loading eea-layout-api instead of eea-layout in https://github.com/eea/geonetwork-eea/blob/eea-develop/web/src/main/webapp/xslt/base-layout.xsl#L17)
Download latest WAR http://file.titellus.net/eea-catalogues.tar.gz
Backup databases first:
- Backup in pgadmin using Tar format
- Create new db
- Load plpgsql language using 'createlang plpgsql dbname'
- Load backup using pgadmin
Backup webapps.
Backup data directory.
- server.xml
- URIEncoding="UTF-8" should be defined for connector used
- Add JAVA_OPTS to /etc/sysconfig/tomcat
CATALOGUE_DATA_DIR=/var/local/gn_data
JAVA_OPTS="$JAVA_OPTS -Xms3g -Xmx3g -XX:MaxPermSize=512m"
JAVA_OPTS="$JAVA_OPTS -Dinternal-catalogue.data.dir=$CATALOGUE_DATA_DIR/internal-catalogue"
JAVA_OPTS="$JAVA_OPTS -Deditor-catalogue.data.dir=$CATALOGUE_DATA_DIR/editor-catalogue"
JAVA_OPTS="$JAVA_OPTS -Dcatalogue.data.dir=$CATALOGUE_DATA_DIR/catalogue"
JAVA_OPTS="$JAVA_OPTS -Dmap-catalogue.data.dir=$CATALOGUE_DATA_DIR/map-catalogue"
Run the migration script manually before starting the application (See https://github.com/eea/geonetwork-eea/blob/eea-develop/web/src/main/webapp/WEB-INF/classes/setup/sql-eea/db-migrate-201502.sql).
The data directory content changed:
- Add jdbc.properties (loaded from the data directory of each catalogue in https://github.com/eea/geonetwork-eea/blob/eea-develop/web/src/main/webResources/WEB-INF/config-db/eea-jdbc-config.xml#L12)
- Update config.xml (removed db and gui configuration)
- Remove old catalogue-props.xml
- Remove old index directory
- Remove old stat images
rm catalogue-props.xml
rm -fr index
rm -fr config/codelist
rm -fr config/schemaplugin-uri-catalog.xml
rm -fr data/resources/images/statTmp
- Recreate harvester configuration from admin interface.
- Internal harvester
- filter to apply:
anonymizer?protocol=EEA&[email protected]&thesaurus=EEA
- Create virtual CSW from admin page (optional)
<service name="csw-inspire">
<class name=".services.main.CswDiscoveryDispatcher">
<param name="filter" value="+inspirerelated:on"/>
</class>
</service>
<service name="csw-geoss">
<class name=".services.main.CswDiscoveryDispatcher">
<param name="filter" value="+_cat:geodatacore"/>
</class>
</service>