Changeset 5011
- Timestamp:
- 04/17/14 13:53:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/DEPLOY-README
r4322 r5011 10 10 11 11 The VLO importer and web application are contained in an 12 archive. In the case of version 2.13, the archive is named12 archive. In the case of version 3.0, the archive is named 13 13 14 vlo_parent-2.13-Distribution.tar.gz14 vlo-3.0-Distribution.tar.gz 15 15 16 16 Deploying the VLO application means: … … 26 26 Unpack the archive, for example 27 27 28 vlo_parent-2.13-Distribution.tar.gz28 vlo-3.0-Distribution.tar.gz 29 29 30 30 in a temporary directory: 'temp'. Next, stop the Tomcat server: 31 31 32 /etc/init.d/tomcat6 stop32 /etc/init.d/tomcat6 stop 33 33 34 34 After the server has stopped, copy the contents of the vlo_parent-2.13 … … 37 37 from the 38 38 39 vlo/bin39 vlo/bin 40 40 41 41 directory, you can run the importer application. Since this application … … 50 50 example be 51 51 52 /var/lib/tomcat6/webapps52 /var/lib/tomcat6/webapps 53 53 54 54 Step into this directory, lets call it 'apps', 55 55 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 . 59 58 60 59 If it does not exist, create the vlo_solr directory, and unpack the web 61 60 application archive in it: 62 61 63 cd vlo_solr64 unzip ../vlo_solr-3.6.0.war62 cd vlo_solr 63 unzip ../vlo-solr-3.0.war 65 64 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, 67 66 modify the solr/home parameter in the 68 67 69 apps/META-INF/context.xml68 apps/META-INF/context.xml 70 69 71 70 file to the path where the solr server finds its configuration and stores 72 71 its data: 73 72 74 vlo/config/solr73 vlo/config/solr 75 74 76 75 Copy the new context.xml file to the Tomcat configuration: 77 76 78 cp apps/META-INF/context.xml \79 /var/lib/tomcat6/conf/Catalina/localhost/vlo_solr.xml77 cp apps/META-INF/context.xml \ 78 $CATALINA_HOME/conf/Catalina/localhost/vlo_solr.xml 80 79 81 80 If you would like logging to be configured different from the type of 82 81 logging packaged, please modify 83 82 84 apps/WEB-INF/classes/log4j.properties83 apps/WEB-INF/classes/log4j.properties 85 84 86 85 If necessary, change the ownership of the files in the tree starting in 87 86 88 vlo/config/solr87 vlo/config/solr 89 88 90 89 to that of the Tomcat user. This will enable the Solr server can store data … … 96 95 Similar to the Solr archive, unpack 97 96 98 temp/vlo_parent-2.13/war/vlo_web_app-2.13.war in97 temp/vlo-3.0/war/vlo-web-app-3.0.war in 99 98 100 99 the 101 100 102 apps/vlo101 apps/vlo 103 102 104 103 directory. … … 109 108 file as the one used by the importer (see 5). Please modify 110 109 111 apps/META-INF/context.xml110 apps/META-INF/context.xml 112 111 113 112 by adding a reference to an external configuration file. By modifying this … … 121 120 the parameter to 122 121 123 apps/META-INF/context.xml122 apps/META-INF/context.xml 124 123 125 124 directly. The comments in this file will tell you how to add the parameter. … … 128 127 context file to: 129 128 130 /var/lib/tomcat6/conf/Catalina/localhost/vlo.xml129 /var/lib/tomcat6/conf/Catalina/localhost/vlo.xml 131 130 132 131 or to another, comparable path. … … 135 134 modifications should be applied to: 136 135 137 apps/WEB-INF/classes/log4j.properties136 apps/WEB-INF/classes/log4j.properties 138 137 139 138 Now the web application has been installed and configured, we only need to … … 148 147 the web application's configuration is in 149 148 150 path/VloConfig.xml, add149 $VLO_CONFIG/VloConfig.xml, use 151 150 152 -c path/VloConfig.xml151 ./vlo_solr_importer.sh -c $VLO_CONFIG/VloConfig.xml 153 152 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'. 155 155 156 156 Most likely, in the configuration file, the dataRoot values need to be 157 157 changed. This is what a dataRoot definition could look like: 158 158 159 <originName>MPI self harvest</originName>160 161 162 163 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> 165 165 166 166 A dataRoot element describes the meta data files. The toStrip part of the … … 171 171 changed. Please note that the context path value defined in 172 172 173 /var/lib/tomcat6/conf/Catalina/localhost/vlo_solr.xml173 $CATALINA_HOME/conf/Catalina/localhost/vlo_solr.xml 174 174 175 175 or in a file equivalent to this one, should be reflected in the value of … … 185 185 Before starting data import, first start the Tomcat server: 186 186 187 /etc/init.d/tomcat6 start187 /etc/init.d/tomcat6 start 188 188 189 189 To be sure the Solr server is working as it should, inspect the Tomcat log … … 192 192 Next, you can run the importer by starting the 193 193 194 ./vlo_solr_importer.sh194 ./vlo_solr_importer.sh 195 195 196 196 script in the vlo/bin directory. Messages are logged to the console. Because 197 197 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.201 3) set of data, a199 run typically takes between four and fivehours.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.