Franck,

This installation walk-through will be useful for people. One comment.
Using messaging (enabled on Fedora installation) is the preferred
method for automatic updates. I think this part below configures
updates based on REST. As far as I know it is not recommended to use
both the messaging and REST-based updates.

vi /opt/fedora/server/config/fedora.fcfg
 <!--<module role="org.fcrepo.server.storage.DOManager"
class="org.fcrepo.server.storage.DefaultDOManager"\
>-->
  <module role="org.fcrepo.server.storage.DOManager"
class="org.fcrepo.server.storage.GSearchDOManager">


Thanks you!

Serhiy Polyakov
University of North Texas



On Wed, Jan 25, 2012 at 5:51 AM, Franck Borel
<franck.bo...@ub.uni-freiburg.de> wrote:
> Hi Maury,
>
> I have written a walk through. Perhaps this would help you:
>
> Installation
> ============
> (1) Java (1.6)
> (2) Postgresql
>        (a) Add user fedora
>        (b) Add database fedora or fedora3
>        (c) Add owner fedora
> (3) Tomcat
> Memory:
> cd /opt/tomcat/bin
> em setenv.sh
> export JAVA_OPTS="-server -XX:+UseParallelGC -Xmx768m
> -XX:MaxPermSize=160m -Djava.awt.headless=true"
> (4) Maven 2 ?
> (5) java -jar fcrepo-installer-3.5.jar
>        Installation type: custom
>        Fedora home directory: /opt/fedora
>        Fedora administrator password: <password>
>        Fedora server host: 132.230.25.215
>        Fedora application server context: fedora
>        Authentication requirement for API-A: false
>        SSL availability: false
>        Servlet engine: existingTomcat
>        Tomcat home directory: /usr/share/tomcat6
>        Tomcat HTTP port: 8080
>        Tomcat shutdown port: 8005
>        Database: postgresql
>        Postgresql JDBC driver: /usr/share/java/postgresql-jdbc.jar
>        Database username: fedora
>        Database password: <Passwort>
>        JDBC URL: jdbc:postgresql://localhost/fedora
>        JDBC DriverClass: org.postgresql.Driver
>        Enable FeSL AuthN: true
>        Enable FeSL AuthZ (Experimental Feature): false
>        Policy enforcement enabled: false
>        Low Level Storage: akubra-fs
>        Enable Resource Index: true
>        Enable Messaging: true
>         Messaging Provider URI: vm:(broker:(tcp://localhost:61616))
> (6) cd /opt
> (7) chown -R tomcat:tomcat fedora
>
>
> ===============
> Solr for Fedora
> ===============
> (1) cd /opt/src
> (2) wget http://apache.imsam.info//lucene/solr/3.5.0/apache-solr-3.5.0.zip
> (3) unzip apache-solr-3.5.0.zip
> (4) cd apache-solr-3.5.0/
> (5) cp -R example/solr /opt/fedora/
> (6) chown -R tomcat:tomcat /opt/fedora/solr
> (7) unzip dist/apache-solr-3.4.0.war -d solr
> (8) cp -r solr /usr/share/tomcat6/webapps/
> (9) em /usr/share/tomcat6/webapps/solr/WEB-INF/web.xml
>        <env-entry>
>        <env-entry-name>solr/home</env-entry-name>
>        <env-entry-value>/opt/fedora/solr</env-entry-value>
>        <env-entry-type>java.lang.String</env-entry-type>
>     </env-entry>
> (10) rctomcat6 restart
> (11) test with http://dilbert.ub.uni-freiburg.de:8080/solr
>
>
> ======================
> GSearch mit Solr-Index
> ======================
> Needs: Java, Servlet-Container, Ant, Fedora and Solr
>
> === Installation:
> (1) cd /opt/src
> (2) get
> http://sourceforge.net/projects/fedora-commons/files/services/3.5/gsearch-2.3.zip/download
> (3) unzip gsearch-2.3.zip -d /opt/fedora/
> (4) cd /opt/fedora
> (5) mv gsearch-2.3 gsearch
> (6) cd /opt/fedora/gsearch
> (7) unzip gsearch/fedoragsearch.war -d
> /usr/share/tomcat6/webapps/fedoragsearch
> (8) cp fedora.fcfg fedora.fcfg.orig
> (9) vi /opt/fedora/server/config/fedora.fcfg
>        <module role="org.fcrepo.server.messaging.Messaging"
> class="org.fcrepo.server.messaging.MessagingModule">
>     <comment>Fedora's Java Messaging Service (JMS) Module</comment>
>     <param name="enabled" value="true"/>
> (11) rctomcat6 restart
> (10) Test with http://dilbert.ub.uni-freiburg.de/fedoragsearch/
> (11) Login with fedora admin password
>
> === Configuration
> -------------------------------------------------------------------------
> NOTICE: There are templates under /webapps/fedoragsearch/FgsConfig
> Copy. Copy this template in a any directory (e.g. /opt/fedora/gsearch
> and use ant to build the configuration files.
> -------------------------------------------------------------------------
> (1) cd /opt/fedora/gsearch
> (2) unzip fedoragsearch.war -d fedoragsearch
> (2) cp -r /opt/fedora/fedoragsearch/FgsConfig .
> (3) cd /opt/fedora/gsearch/FgsConfig
> (4) vi fgsconfig-basic.properties
>        #configDisplayName=configDemoOnLucene
>        configDisplayName=configDemoOnSolr
>        gsearchUser=fedoraAdmin
>        gsearchPass=f3d*r@
>        local.FEDORA_HOME=/opt/fedora
>        
> finalConfigPath=/usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes
>        fedoraUser=fedoraAdmin
>        fedoraPass=f3d*r@
>        #indexEngine=Lucene
>        indexEngine=Solr
>        indexBase=http://localhost:8080/solr
>        indexDir=/opt/fedora/solr/data/index
>        indexingDocXslt=foxmlToSolr
>
> (5) ant -f fgsconfig-basic.xml
> creates:
> configDemoOnSolr (configFgsRoot)
> configDemoOnSolr/fgsconfigFinal/repository (configFgsRepos)
> configDemoOnSolr/fgsconfigFinal/index (configFgsIndex)
> /WEB-INF/classes/fgsconfigFinal
> (6) cp
> /opt/fedora/gsearch/FgsConfig/configProductionOnSolr/fgsconfigFinal/index/FgsIndex/conf/schema-3.4.0-for-fgs-2.3.xml.
> /opt/fedora/solr/conf
> (7) cd /opt/fedora/solr/conf
> (8) mv schema.xml schema.xml.orig
> (9) mv schema-3.4.0-for-fgs-2.3.xml schema.xml
> (10) automatic update part 1:
> vi /opt/fedora/server/config/fedora.fcfg
>  <!--<module role="org.fcrepo.server.storage.DOManager"
> class="org.fcrepo.server.storage.DefaultDOManager"\
>>-->
>   <module role="org.fcrepo.server.storage.DOManager"
> class="org.fcrepo.server.storage.GSearchDOManager">
> (11) automatic update part 2:
> vi /opt/fedora/solr/conf/solrconfig.xml
> uncomment:
>   <autoCommit>
>          <maxDocs>10000</maxDocs>
>          <maxTime>1000</maxTime>
>        </autoCommit>
>
> (10) rctomcat6 restart
> (11) Test with http://dilbert.ub.uni-freiburg.de:8080/fedoragsearch/rest
>
> hopes this helps
>
> -- Franck
>
> Am 25.01.2012 02:31, schrieb maurice.bouch...@simmons.edu:
>> Greetings fellow searchers,
>>
>> I am attempting to use Gsearch 2.4 with fedora 3.5 and solr 3.5
>> without much success.  I have JMS set to true in fedora.fcfg (which I
>> understand is supposed to update the Gsearch index automatically as
>> files are ingested).  I ingested all the demo objects but there is
>> nothing in the index.  All the log files are clean.  There are no
>> errors or warnings of any kind.
>>
>> I have been scouring my config files looking for the magic knob but to
>> no avail (yet.  -- I just noticed that Franck Borel posted a nearly
>> identical question on 11 Jan 12. I don't see a resolution to his
>> problem but I'll dig into it a bit more).
>>
>> Anyway, in the fgsconfig-basic.properties file there is an attribute
>> called namesOfRepositories. What is this for? Does the value of this
>> attribute have to match anything in fedora.fcfg or any other file?
>> Same question for namesOfIndexes.
>>
>> Thanks,
>> Maury Bouchard
>> Simmons College - GSLIS
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
> --
> Franck Borel                 Universitaetsbibliothek Freiburg
> Tel: +49-761 / 203-3946      Rempartstrasse 10-16  | Postfach 1629
> Fax: +49-761 / 203-3987      79098 Freiburg        | 79016 Freiburg
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to