Changeset 2874
- Timestamp:
- 05/07/13 13:51:37 (11 years ago)
- Location:
- vlo/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/CHANGES
r2817 r2874 1 1 Bug Fixes and Features 2 2 3 Beta release 2.13 ( April2013)3 Beta release 2.13 (May 2013) 4 4 5 5 A new package, eu.clarin.cmdi.vlo.config was added taking care of the web … … 8 8 9 9 Both the importer and the web application use the same base file for 10 configuration. Th e base file refers to cmdi2xhtml.xsl,11 facetConcepts.xml, andnationalProjectsMapping.xml file.10 configuration. This file refers to external resources like for example 11 the nationalProjectsMapping.xml file. 12 12 13 13 The base VloConfig.xml file that is included in the /src/main/resources -
vlo/trunk/DEPLOY-README
r2830 r2874 19 19 - adapt the application's context files 20 20 and 21 - adapt the main configuration file.21 - adapt the VloConfig.xml main configuration file. 22 22 23 23 2. Archive unpacking 24 24 25 Unpack the archive in directory x, 26 for example: /var/lib/tomcat6/webapps/vlodist/ 27 cd x 28 With tar -xvf vlo_parent-2.13-Distribution.tar.gz 29 vlo_parent-2.13 will be created in the x directory. 25 Unpack the archive, for example 30 26 31 To begin with, make the server's Tomcat user own the files unpacked. 27 vlo_parent-2.13-Distribution.tar.gz 28 29 in a temporary directory temp. Copy the contents of the vlo_parent-2.13 30 directory just created to a permanent directory, vlo, for example. In the 31 tree starting in vlo, the VLO configuration is stored. Also, from the 32 33 vlo/bin 34 35 directory, you can run the importer application. 32 36 33 37 3. Solr server installation 34 38 35 39 The VLO importer and web application use Solr as their database 36 server. 40 server. To install this server, first stop the Tomcat server: 37 41 38 Unpack x/vlo_parent-2.13/war/solr.war in a directory named y in which you 39 want the Solr server to reside. This could, for example be: 42 /etc/init.d/tomcat6 stop 40 43 41 /var/lib/tomcat6/webapps/vlodist/vlo_parent-2.13/war/solr 44 Next, copy the Solr server web application archive to the Tomcat 45 server web application directory. This could for example be 42 46 43 cd y 44 unzip x/vlo_parent-2.13/war/vlo_solr.war 47 /var/lib/tomcat6/webapps 45 48 46 Make the Tomcat user owner of the files in the tree that starts in 47 the y directory. 49 Step into this directory, apps, 48 50 49 In y/META-INF/context.xml file you will probably need to modify some 50 definitions. 51 cd apps 52 53 cp temp/vlo_parent-2.13/war/solr.war . 51 54 52 - The context path value. If you define vlo_solr/ to be the value of the 53 context path, and prefix is some string pointing to web server the 54 application is installed on, the Solr server will be reachable at the 55 56 prefix/vlo_solr/ 55 If it does not exist, create the vlo_solr directory, and unpack the web 56 application archive in it: 57 57 58 url. 59 60 - Assign x/vlo_parent-2.13/config/solr to the solr/home parameter. 58 cd vlo_solr 59 unzip ../solr.war 61 60 62 Next, copy the y/META-INF/context.xml file to 61 In apps/META-INF/context.xml file you modify the solr/home parameter to the 62 path where the solr server finds its configuration and stores its data: 63 63 64 vlo/config/solr 65 66 Copy the new context.xml file to the Tomcat configuration: 67 68 cp apps/META-INF/context.xml \ 64 69 /var/lib/tomcat6/conf/Catalina/localhost/vlo_solr.xml 65 70 66 or to a directory equivalent to it. If necessary, make the Tomcat user owner67 of the vlo_solr.xml file.71 If you would like logging to be configured different from the type of 72 logging packaged, please modify 68 73 69 Create a link for the Tomcat server so that it knows where to look for the 70 solr server installation: 74 apps/WEB-INF/classes/log4j.properties 71 75 72 ln -sf y/solr/ /var/lib/tomcat6/webapps/vlo_solr76 If necessary, change the ownership of the files in the tree starting in 73 77 74 or equivalent. The link created should identify the path defined the context 75 file, vlo_solr in this case. 78 vlo/config/solr 76 79 77 If necessary, change the ownership of the link to the Tomcat user. And if 78 you would like logging to be configured different from the type of logging 79 packaged, please modify 80 to the Tomcat user, so that the solr server can store data in it. 80 81 81 y/WEB-INF/classes/log4j.properties82 Finally, start the Tomcat server: 82 83 83 Restart tomcat: 84 /etc/init.d/tomcat6 restart 84 /etc/init.d/tomcat6 start 85 85 86 Inspect the Tomcat log file directory, and inspect the solr.log file. 86 To be sure the Solr server is working as it should, please inspect the Tomcat 87 log file directory, and inspect the solr.log file. 87 88 88 89 4. Web application installation 89 90 90 Similar to the solr archive, unpack x/vlo_parent-2.13/war/vlo.war in 91 a directory z in which you want the vlo web application to reside. 91 Similar to the Solr archive, stop the Tomcat server, and unpack 92 93 temp/vlo_parent-2.13/war/vlo.war in 92 94 93 cd z 94 unzip x/vlo_parent-2.13/war/vlo.war 95 the 95 96 96 Make the Tomcat own the files in and below the z directory.97 apps/vlo 97 98 98 Modify the META-INF/context.xml file. Like in the case of the solr server, 99 assign the desired context path value. Again, if prefix is a string pointing 100 to the web server the application is installed on, the vlo web application 101 will be reachable at the url/vlo/ url. 99 directory. 102 100 103 101 Because the packaged configuration is suitable to very specific (development) 104 102 circumstances only, in most cases it does fit the production environment. You 105 103 can specify an alternative, external configuration file, preferably the same 106 file as the one used by the importer (see 5). 104 file as the one used by the importer (see 5). Please modify 107 105 108 Most likely, you will need to assign another value to the solrUrl parameter. 109 This parameter is used to let the VLO web application know where it can reach 110 the Solr server. You can set the value of this parameter in an external 111 configuration file, or directly in the context file. 106 apps/META-INF/context.xml 112 107 113 Like in the case of the solr server, copy the z/META-INF/context.xml context 114 file to: 108 by adding a reference to an external configuration file. By modifying this 109 file, you can adapt the VLO configuration to your needs. You might, for 110 example, need to assign another value to the solrUrl parameter also. This 111 parameter is used to let the VLO web application know where it can reach the 112 Solr server. 113 114 Instead of changing the value of the solrUrl parameter in the external 115 configuration file, you could also supply an alternative value by adding 116 the parameter to 117 118 apps/META-INF/context.xml 119 120 directly. The comments in this file will tell you how to add the parameter. 121 122 Like in the case of the Solr server, copy the apps/META-INF/context.xml 123 context file to: 115 124 116 125 /var/lib/tomcat6/conf/Catalina/localhost/vlo.xml 117 126 118 or to another, comparable path. Please make the Tomcat user own this file. 119 120 Also, create a link for the Tomcat server so that it knows where to look 121 for the vlo web application installation: 122 123 ln -sf z/solr /var/lib/tomcat6/webapps/vlo 124 125 Like in the case of the Solr server, the link created should identify the 126 path defined the context file. Again, if necessary, change the ownership of 127 the context file and the link to the Tomcat user. 127 or to another, comparable path. 128 128 129 129 If you like, you can change the web application's way of logging. This time, 130 130 modifications should be applied to: 131 131 132 z/WEB-INF/classes/log4j.properties132 apps/WEB-INF/classes/log4j.properties 133 133 134 Restart the Tomcat server: 135 136 /etc/init.d/tomcat6 restart 137 138 or equivalent. This will cause the new Solr server and vlo web application to 139 become active. 140 141 Finally, inspect the Tomcat log file directory, and inspect the vlo.log file 142 also. 134 Finally, start the Tomcat server, and inspect the Tomcat log file directory, 135 especially the vlo.log file. 143 136 144 137 5. Importer configuration 145 138 146 Both the web application and the importer should use one and the same 147 configuration file. So if, for example, the web application's configuration 148 is in 139 As mentioned in the description of the web application installation, a 140 typical setup needs an external configuration file. For consistency reasons 141 both the web application and application that imports data into the Solr 142 data base should use one and the same configuration file. So if, for example, 143 the web application's configuration is in 149 144 150 145 path/VloConfig.xml, add … … 152 147 -c path/VloConfig.xml 153 148 154 to the command in the importer script in the x/vlo_parent-2.13/bin directory.149 to the command in the importer script in the vlo/bin directory. 155 150 156 Most likely, the dataRoot values need to be changed. This is what a157 dataRoot definition could look like:151 Most likely, in the configuration file, the dataRoot values need to be 152 changed. This is what a dataRoot definition could look like: 158 153 159 <DataRoot> 160 <originName>IPROSLA</originName>161 <rootFile>/lat/apache/htdocs/static-data-for-vlo-importer/</rootFile>162 <prefix>http://catalog.clarin.eu/</prefix>163 <tostrip>/lat/apache/htdocs/</tostrip>164 154 155 <originName>MPI self harvest</originName> 156 <rootFile>/var/www/vlomd/self/</rootFile> 157 <prefix>http://m12404423/vlomd/</prefix> 158 <tostrip>/var/www/vlomd/</tostrip> 159 <deleteFirst>false</deleteFirst> 165 160 </DataRoot> 166 161 167 A dataRoot describes the meta data files. The toStrip part of the168 description is left out of the rootFile part to create a link to the162 A dataRoot element describes the meta data files. The toStrip part of the 163 description is left out of the rootFile part to create a http link to the 169 164 meta data; the links starts with the prefix. 170 165 … … 188 183 ./vlo_solr_importer.sh 189 184 190 script in the x/x/vlo_parent-2.13/bin directory. Messages are logged to the191 console. Because meta data is not static, it is recommended to run the192 importer a couple of times a week. Please note that, given the current193 (04.2013) set of data, arun typically takes between four and file hours.185 script in the vlo/bin directory. Messages are logged to the console. Because 186 meta data is not static, it is recommended to run the importer a couple of 187 times a week. Please note that, given the current (04.2013) set of data, a 188 run typically takes between four and file hours.
Note: See TracChangeset
for help on using the changeset viewer.