Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

1.System Requirements

  • Tomcat 6.0.26 or higher
  • JDK 1.6.0.23 or higher
  • RAM - 3GB(minimum available)
  • Processor - 2 GHz or higher
  • Hard disk - The DocStore WAR file is about 50MB in size.
  • The actual repository size depends on the volume of the documents to be added.
  • The account/user under which Tomcat runs should have rwx access to the DocStore repository folder.

2.Getting the Source Code from SVN

  • Check out the ole-docstore trunk directory from the following SVN Repository:

              ole-trunk

      The following projects will be checked out.

  • ole
  • ole-cfg-

...

  • dbs
  • ole-common
  • ole-dependencies
  • ole-docstore -- Refer to it as DOCSTORE_PROJ
  • ole-rice2

3.Building the Code

  • Open command prompt and go to the ole-docstore folder
  • Run the following command "mvn clean install"

3.Deployment

3.1  Setting up properties

Create the following directories in the same drive as %TOMCAT_HOME% directory. 

  • \opt\docstore\discovery\properties
  • \opt\docstore\discovery\solr-config
  • \opt\docstore\properties folder: %DOCSTORE_PROJ%

             Run “mvn clean install”.

            oledocstore.war file will be created in %DOCSTORE_PROJ%\ ole-docstore-webapp\target folder.

4.Deployment

4.1  Setting up properties

Go to %TOMCAT_HOME%\bin directory.

...

Define the following variables in setenv.bat file

...

Set JAVA_OPTS as below.

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1g -XX:MaxPermSize=256m
 set set JAVA_OPTS=%JAVA_OPTS% -Dapp.environment=local
 set set JAVA_OPTS=%JAVA_OPTS% -Dsolr.solr.home="%OLE_DISCOVERY_CONFIG_HOME%"
 set JAVA_OPTS=%JAVA_OPTS% -Ddiscovery.properties.file="%OLE_DISCOVERY_PROP_HOME%\ole-discovery.properties"
 set DOLE_DOCSTORE_HOME="\opt\docstore"
set JAVA_OPTS=%JAVA_OPTS% -Ddocstore.properties.home="%OLE_DOCSTORE_PROP_HOME%"
 set JAVA_OPTS=%JAVA_OPTS% -Dorg.apache.jackrabbit.repository.home="%OLE_DOCSTORE_HOME%\jackrabbit"
 set JAVA_OPTS=%JAVA_OPTS% -Dorg.apache.jackrabbit.repository.conf="%OLE_DOCSTORE_PROP_HOME%\repository.xml"
 set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration="file:%OLE_DOCSTORE_PROP_HOME%\log4j.propertiesDOLE_DISCOVERY_HOME="\opt\docstore\discovery"

Save the file setenv.bat                                        

  •       Copy the contents of DOCSTORE_SOLR_CONFIG_PROJ to OLE_ DISCOVERY_CONFIG_HOME.
  •       Copy ole-discovery.properties from DOCSTORE_WEBAPP_PROJ/src/main/resources to OLE_ DISCOVERY_PROP_HOME.

                    Modify the port in the following property in the above file to match the Tomcat port. (Default is 8080)

...

4.2 Deploying the War file to Tomcat

  •    Copy oledocstore.war file from %DOCSTORE_PROJ%\ ole-docstore-webapp\target to %TOMCAT_HOME%\webapps folder

5.Running Docstore and Discovery

Start the Tomcat Server.

Open a browser.

Navigate to the following URLs.

  •       Copy DOCSTORE_WEBAPP_PROJ /repository-derby.xml to OLE_DOCSTORE_PROP_HOME.and rename it as  repository.xml
  •       Copy DOCSTORE_ENGINE_PROJ/src/main/resources/org/kuali/ole/utility/documentstore.properties to OLE_DOCSTORE_PROP_HOME

...

...

The following directory structure is created for DocumentStore and Discovery related configuration after the application is started.

...

DocumentStore

  • \opt\docstore\properties 

Discovery

  • \opt\docstore\discovery\properties
  • \opt\docstore\discovery\solr-config

If the application is not accessible, the following properties may need to be edited and Tomcat restarted.

  •       Open documentstore.properties file under \opt\docstore\properties and modify the port in the following property

...

  • to match the Tomcat port. (Default is 8080)

                                          local.docSearchURL=http://localhost:8080/oledocstore/

3.2 Deploying the War file to Tomcat

  •    Copy oledocstore.war file from %DOCSTORE_WEBAPP_PROJ%target to %TOMCAT_HOME%\webapps folder

 4.Running Docstore and Discovery

Start the Tomcat Server.

Open a browser.

Navigate to the following URLs.

                    docSearchURL=http://localhost:8080/oledocstore/

...

...

6.String Ingest

  Refer to User Guide for details

Open a browser.

        Go to URL http://localhost:8080/oledocstore/discovery and and click on "Ingest “Ingest String Content" Content” tab.

        Copy the sample xml provided in the screen.

        Click Submit button.

The response xml in the browser gives the result of the stream ingest process.

 The The data can also be verified using the URLs given in the previous section.

...

7.Bulk Ingest

  Refer to User Guide for details

Copy the following sample data files to the folder specified by the property  local.batch.upload.dir (only this property) in the file %OLE_DISCOVERY_PROP_HOME% \opt\docstore\propertiesdocumentstore.properties. This property should be changed to a directory suitable to the local user's system. (e.g. /ole-test-data/bulkingest). Create this folder if it does not exist.

Please note: There may be issues with file/folder permissions with this directory. Make sure this directory is fully accessible by all users.

  •  %DOCSTORE_ENGINE_PROJ%DOCSTORE_PROJ \ole-docstore-engine\src\test\resources\org\kuali\ole\bulkIngest\files\bulkIngest-Work-Bib-Marc-20.xml    --- This is a sample test data file
  • %DOCSTORE_ENGINE_PROJ%DOCSTORE_PROJ \ole-docstore-engine\src\test\resources\org\kuali\ole\bulkIngest\files\bulkIngest-Work-Inst-OleML-20.xml   --- This is a sample test data file

...

             Go to URL http://localhost:8080/oledocstore/admin.jsp

             Click on 'BulkIngest' ‘BulkIngest’ button. Need to click only once.

 To verify that the data is stored in DocStoreDocumentStore, go to URL

            http://localhost:8080/oledocstore

           Click 'Refresh Summary' ‘Refresh Summary’ button in the Summary tab.

...

To verify that the data is indexed in DocStore, go to URL

         http://localhost:8080/oledocstore/discovery

         Click 'Refresh' ‘Refresh’ button in the Summary tab.

         Note for the count for each DocType.

...

8.LOG Files

Open log4j.properties file under OLE_DOCSTORE_PROP_HOME \opt\docstore\properties

Now check the following properties to find the location of log files:

...

Open corresponding files specified by above properties. If the path is relative , look for it in %TOMCAT_HOME%\bin directory

...

9.DocStore within OLE(Optional)

Copy the oledocstore.war files into the Tomcat running OLE.

Before building OLE make sure the following properties are correctly set in local-build.properties file in %OLE_HOME% directotydirectory.

Copy the file 'olebibeditor‘olebibeditor.properties' properties’ provided along with this document in to your %USER_HOME% directory.

...

 Open a browser.

      Go to URL

       http://localhost:8080/ole-local/portal.do?channelTitle=DocumentStoreSearch&channelUrl=discovery.do

       Click on 'Search' button.‘Search’ button.

Open documentstore.properties file under \opt\docstore\properties and modify the port in the following property to match the Tomcat port. (Default is 8080)

local.docSearchURL=http://localhost:8080/oledocstore/