Changeset 26434 for gs3-extensions/fedora/trunk/src/README
- Timestamp:
- 2012-10-31T20:21:53+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/fedora/trunk/src/README
r26420 r26434 4 4 5 5 A. To install your GS3 Fedora extension from fedora3-gs3ext.tar.gz 6 Uninstalling Fedora 6 7 7 8 B. How to manually build fedora collections … … 21 22 Fedora GSearch 2.5 22 23 23 Web services pages once installed :24 Web services pages once installed (by default GS3 is set to use localhost:8383): 24 25 http://localhost:8383/fedora/services 25 26 http://localhost:8383/fedoragsearch/services … … 58 59 #fedora.maxpermsize=-XX:MaxPermSize=128m 59 60 #fedora.password=pounamu 61 #index.writelock.timeout=10000 60 62 61 63 Uncomment all these properties and change the value for the fedora password if necessary: … … 65 67 fedora.maxpermsize=-XX:MaxPermSize=128m 66 68 fedora.password=pounamu 67 69 index.writelock.timeout=10000 68 70 69 71 6. Use a terminal to go into this folder: … … 89 91 $ ./gli/fli.sh 90 92 93 94 9. Once you've tested everything is working, you may want to set logging level of Fedora GSearch to log ERRORs rather than all DEBUG statements. See the Debugging section in this file. 91 95 92 96 … … 138 142 139 143 144 ***************************************** 145 UNINSTALLING FEDORA 146 ***************************************** 147 148 1. Make sure tomcat is stopped. 149 150 2. Go to /GS3/ext/fedora3 and run: 151 ant uninstall-fedora 152 153 The above will remove 154 - the deployed webapps (fedora, fedoragsearch, fedora-demo, fop, imagemanip and saxon.war) 155 - as well as the ext/fedora3 folder itself. 156 157 158 140 159 ******************************************************************************************************************** 141 160 B. Manual building of fedora collections … … 152 171 source gs3-setup.bash 153 172 154 3. Create a new collection with mkcol.pl. Call it "fedora1" for example155 mkcol.pl -site localsite fedora1156 157 (Deprecated: mkcol.pl -gs3mode -collectdir /<GS3>/web/sites/localsite/collect fedora1)173 3. Create a new collection with mkcol.pl. 174 mkcol.pl -site localsite <COLNAME> 175 176 (Deprecated: mkcol.pl -gs3mode -collectdir /<GS3>/web/sites/localsite/collect <COLNAME>) 158 177 159 178 4. Run import and build to ingest the new collection. Make sure to use the correct host and port, as specified in your /<GS3>/build.properties file. … … 161 180 - First put the documents you want into the import directory of your new collection. 162 181 163 - g2f-import.pl -hostname localhost -port 8383 -password pounamu -removeold -collectdir /<GS3>/web/sites/localsite/collect fedora1182 - g2f-import.pl -hostname localhost -port 8383 -password pounamu -removeold -collectdir /<GS3>/web/sites/localsite/collect <COLNAME> 164 183 (password may be optional at this stage, by include it for convenience) 165 184 166 - g2f-buildcol.pl -hostname localhost -port 8383 -password pounamu -removeold -collectdir /<GS3>/web/sites/localsite/collect fedora1185 - g2f-buildcol.pl -hostname localhost -port 8383 -password pounamu -removeold -collectdir /<GS3>/web/sites/localsite/collect <COLNAME> 167 186 168 187 … … 181 200 - use FLI to transfer dls to dc metadata upon Gathering the documents. 182 201 - then before building, turn on the description_tags in the HTMLPlugin. 202 Or manually add to the etc/collectionConfig.xml of the demo collection: 203 204 <plugin name="HTMLPlugin"> 205 <option name="-description_tags"/> 206 </plugin> 183 207 184 208 … … 190 214 Also open each folder's jpg document cover image in GIMP and resave under the same name (at 100% quality). 191 215 192 193 216 6. If you ran FLI, exit it. It should stop the Greenstone server. 194 217 … … 202 225 ant start 203 226 204 8. To activate the collection, first visit the web page227 8. Alternatively, to activate the collection, first visit the web page 205 228 http://<host>:<port>/greenstone3/library?a=s&sa=a&st=collection&sn=<COLNAME> 206 229 … … 217 240 Deleting a Fedora GS3 collection is accomplished with the following 2 steps: 218 241 219 1. Run the g2f-deletecol.pl script over the collection to be deleted. Assuming the collection is called fedora1, you'd run: 220 g2f-deletecol.pl -hostname localhost -port 8383 -password pounamu -collectdir /<GS3>/web/sites/localsite/collect fedora1 242 1. Run the g2f-deletecol.pl script over the collection to be deleted: 243 g2f-deletecol.pl -hostname localhost -port 8383 -password pounamu -collectdir /<GS3>/web/sites/localsite/collect <COLNAME> 244 245 (Note: no -removeold flag, otherwise the command is similar to the g2f-import.pl and g2f-buildcol.pl scripts) 246 221 247 2. Manually delete the Greenstone collection directory from the filesystem 222 248 … … 224 250 To run this manually, 225 251 - first remove the pids from the GSearch index: 226 /<GS3>/packages/tomcat/webapps/fedoragsearch/client>/<GS3>/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh localhost:8383 updateIndex deletePID < greenstone:fedora1-HASH010313b14474bc72b296b15f>252 /<GS3>/packages/tomcat/webapps/fedoragsearch/client>/<GS3>/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh localhost:8383 updateIndex deletePID <DOC-PID e.g. greenstone:fedora1-HASH010313b14474bc72b296b15f> 227 253 228 254 It will ask for the fedoragsearch username and password, which by default are fedoraAdmin and pounamu, respectively. 229 255 230 256 - then purge the necessary documents (pids) from the fedora repository: 231 /<GS3>/ext/fedora3/client/bin>./fedora-purge.sh localhost:8383 fedoraAdmin pounamu greenstone:fedora1-HASHe14e36cba08bd41c663237http "purging"257 /<GS3>/ext/fedora3/client/bin>./fedora-purge.sh localhost:8383 fedoraAdmin pounamu <DOC-PID e.g. greenstone:fedora1-HASHe14e36cba08bd41c663237> http "purging" 232 258 233 259 - You can check it's all been deleted by visiting http://localhost:8383/fedora/search … … 263 289 264 290 - ./install/install.properties.in 291 - ./install/server.xml.in 265 292 - ./server/config/spring/akubra-llstore.xml.in 293 - ./server/config/spring/web/web.properties.in 266 294 - ./server/config/fedora.fcfg.in 267 295 - ./server/config/fedora-users.xml.in 296 297 298 (The following also need to refer to the servername and custom Greenstone tomcat port 299 - ./client/bin/fedora-ingest-demos.bat.in 300 - ./client/bin/fedora-ingest-demos.sh.in) 301 268 302 269 303 All these files get converted to filenames without the ".in" suffix upon installation, and placeholder strings in these template files get replaced. The replacements are on the strings … … 394 428 395 429 The installation process will write out this property into GSearch's FgsConfig/FgsConfigIndexTemplate/Lucene/index.properties: 396 fgsindex.defaultWriteLockTimeout = 1000 430 fgsindex.defaultWriteLockTimeout = 10000 431 432 (Another relevant place to change it would be ./FgsConfig/configDemoOnLucene/fgsconfigFinal/index/FgsIndex/index.properties) 397 433 398 434 When fedoragsearch then gets deployed, this value will be propagated into: … … 576 612 </filter> 577 613 578 7. Start tomcat to have it deploy fedoragsearch. 614 7. Open GSearch's FgsConfig/FgsConfigIndexTemplate/Lucene/index.properties and adjust the lock timeout property to 1000 or 10000 ms: 615 fgsindex.defaultWriteLockTimeout = 10000 616 617 8. Start tomcat to have it deploy fedoragsearch. 579 618 This will unpack fedoragsearch. 580 619 581 8. With tomcat running, configure fedoragsearch, which will adjust various config files. You will need to go into the deployed fedoragsearch webapps folder's FgsConfig folder first to be able to run the configuration target:620 9. With tomcat running, configure fedoragsearch, which will adjust various config files. You will need to go into the deployed fedoragsearch webapps folder's FgsConfig folder first to be able to run the configuration target: 582 621 583 622 <GS3>/packages/tomcat/webapps/fedoragsearch/FgsConfig>ant -f fgsconfig-basic.xml 584 623 585 9. With tomcat still running, run updateIndex once to create the empty index for the first time (by running the runRESTClient.sh script with the command: "host:port updateIndex createEmpty [indexName]")624 19. With tomcat still running, run updateIndex once to create the empty index for the first time (by running the runRESTClient.sh script with the command: "host:port updateIndex createEmpty [indexName]") 586 625 587 626 ./<GS3>/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh localhost:8383 updateIndex createEmpty FgsIndex 588 627 589 1 0. Check fedoragsearch has been properly installed by visiting:628 11. Check fedoragsearch has been properly installed by visiting: 590 629 http://localhost:8383/fedoragsearch/rest 591 630 592 1 0. If you wish to remove the various war files from GS3's tomcat webapps folder, you will need to stop tomcat first before deleting the war files, because doing so when tomcat is running will undeploy those webapps.631 12. If you wish to remove the various war files from GS3's tomcat webapps folder, you will need to stop tomcat first before deleting the war files, because doing so when tomcat is running will undeploy those webapps. 593 632 594 633
Note:
See TracChangeset
for help on using the changeset viewer.