Changeset 5011


Ignore:
Timestamp:
04/17/14 13:53:22 (10 years ago)
Author:
Twan Goosen
Message:

updated deploy instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/DEPLOY-README

    r4322 r5011  
    1010
    1111   The VLO importer and web application are contained in an
    12    archive. In the case of version 2.13, the archive is named
     12   archive. In the case of version 3.0, the archive is named
    1313
    14    vlo_parent-2.13-Distribution.tar.gz
     14        vlo-3.0-Distribution.tar.gz
    1515
    1616   Deploying the VLO application means:
     
    2626   Unpack the archive, for example
    2727
    28    vlo_parent-2.13-Distribution.tar.gz
     28         vlo-3.0-Distribution.tar.gz
    2929
    3030   in a temporary directory: 'temp'. Next, stop the Tomcat server:
    3131
    32    /etc/init.d/tomcat6 stop
     32        /etc/init.d/tomcat6 stop
    3333
    3434   After the server has stopped, copy the contents of the vlo_parent-2.13
     
    3737   from the
    3838
    39    vlo/bin
     39        vlo/bin
    4040   
    4141   directory, you can run the importer application. Since this application
     
    5050   example be
    5151
    52    /var/lib/tomcat6/webapps
     52        /var/lib/tomcat6/webapps
    5353
    5454   Step into this directory, lets call it 'apps',
    5555
    56    cd apps
    57  
    58    cp temp/vlo_parent-2.13/war/vlo_solr-3.6.0.war .
     56        cd apps
     57        cp temp/vlo-3.0/war/vlo-solr-3.0.war .
    5958
    6059   If it does not exist, create the vlo_solr directory, and unpack the web
    6160   application archive in it:
    6261
    63    cd vlo_solr
    64    unzip ../vlo_solr-3.6.0.war 
     62        cd vlo_solr
     63        unzip ../vlo-solr-3.0.war 
    6564
    66    After unzipping, remove the vlo_solr-3.6.0.war file. Next, if necessary,
     65   After unzipping, remove the vlo-solr-3.0.war file. Next, if necessary,
    6766   modify the solr/home parameter in the
    6867 
    69    apps/META-INF/context.xml
     68        apps/META-INF/context.xml
    7069
    7170   file to the path where the solr server finds its configuration and stores
    7271   its data:
    7372
    74    vlo/config/solr
     73        vlo/config/solr
    7574
    7675   Copy the new context.xml file to the Tomcat configuration:
    7776
    78    cp apps/META-INF/context.xml \
    79    /var/lib/tomcat6/conf/Catalina/localhost/vlo_solr.xml
     77        cp apps/META-INF/context.xml \
     78                $CATALINA_HOME/conf/Catalina/localhost/vlo_solr.xml
    8079
    8180   If you would like logging to be configured different from the type of
    8281   logging packaged, please modify
    8382
    84    apps/WEB-INF/classes/log4j.properties
     83        apps/WEB-INF/classes/log4j.properties
    8584
    8685   If necessary, change the ownership of the files in the tree starting in
    8786
    88    vlo/config/solr
     87        vlo/config/solr
    8988
    9089   to that of the Tomcat user. This will enable the Solr server can store data
     
    9695   Similar to the Solr archive, unpack
    9796
    98    temp/vlo_parent-2.13/war/vlo_web_app-2.13.war in
     97        temp/vlo-3.0/war/vlo-web-app-3.0.war in
    9998   
    10099   the 
    101100
    102    apps/vlo
     101        apps/vlo
    103102
    104103   directory.
     
    109108   file as the one used by the importer (see 5). Please modify
    110109
    111    apps/META-INF/context.xml
     110        apps/META-INF/context.xml
    112111
    113112   by adding a reference to an external configuration file. By modifying this
     
    121120   the parameter to
    122121
    123    apps/META-INF/context.xml
     122        apps/META-INF/context.xml
    124123
    125124   directly. The comments in this file will tell you how to add the parameter.
     
    128127   context file to:
    129128
    130    /var/lib/tomcat6/conf/Catalina/localhost/vlo.xml
     129        /var/lib/tomcat6/conf/Catalina/localhost/vlo.xml
    131130
    132131   or to another, comparable path.
     
    135134   modifications should be applied to:
    136135
    137    apps/WEB-INF/classes/log4j.properties
     136        apps/WEB-INF/classes/log4j.properties
    138137
    139138   Now the web application has been installed and configured, we only need to
     
    148147   the web application's configuration is in
    149148
    150    path/VloConfig.xml, add
     149        $VLO_CONFIG/VloConfig.xml, use
    151150
    152    -c path/VloConfig.xml
     151        ./vlo_solr_importer.sh -c $VLO_CONFIG/VloConfig.xml
    153152
    154    to the command in the importer script in the vlo/bin directory.
     153   to run the importer in 'bin'. A default configuration file is supplied as
     154   'config/VloConfig.xml'.
    155155
    156156   Most likely, in the configuration file, the dataRoot values need to be
    157157   changed. This is what a dataRoot definition could look like:
    158158
    159    <originName>MPI self harvest</originName>
    160     <rootFile>/var/www/vlomd/self/</rootFile>           
    161     <prefix>http://m12404423/vlomd/</prefix>
    162     <tostrip>/var/www/vlomd/</tostrip>
    163     <deleteFirst>false</deleteFirst>
    164    </DataRoot>
     159           <originName>MPI self harvest</originName>
     160                <rootFile>/var/www/vlomd/self/</rootFile>           
     161                <prefix>http://m12404423/vlomd/</prefix>
     162                <tostrip>/var/www/vlomd/</tostrip>
     163                <deleteFirst>false</deleteFirst>
     164           </DataRoot>
    165165
    166166   A dataRoot element describes the meta data files. The toStrip part of the
     
    171171   changed. Please note that the context path value defined in
    172172
    173    /var/lib/tomcat6/conf/Catalina/localhost/vlo_solr.xml
     173        $CATALINA_HOME/conf/Catalina/localhost/vlo_solr.xml
    174174
    175175   or in a file equivalent to this one, should be reflected in the value of
     
    185185   Before starting data import, first start the Tomcat server:
    186186
    187    /etc/init.d/tomcat6 start
     187        /etc/init.d/tomcat6 start
    188188
    189189   To be sure the Solr server is working as it should, inspect the Tomcat log
     
    192192   Next, you can run the importer by starting the
    193193
    194    ./vlo_solr_importer.sh
     194        ./vlo_solr_importer.sh
    195195
    196196   script in the vlo/bin directory. Messages are logged to the console. Because
    197197   meta data is not static, it is recommended to run the importer a couple of
    198    times a week. Please note that, given the current (04.2013) set of data, a 
    199    run typically takes between four and five hours.
     198   times a week. Please note that, given the current (04.2014) set of data, a 
     199   run typically takes between two and four hours.
Note: See TracChangeset for help on using the changeset viewer.