Differences between revisions 7 and 8
Revision 7 as of 2009-09-03 12:26:15
Size: 7535
Editor: TueLarsen
Comment:
Revision 8 as of 2009-09-03 12:27:35
Size: 7546
Editor: TueLarsen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 99: Line 99:
In the configuration file all the applications are placed on one machine (e.g. the current machine, ~+{{{localhost}}}+~). If run directly it is installed and run from the directory ~+{{{/home/test/USER}}}+~. In the configuration file all the applications are placed on one machine (e.g. the current machine, ~+{{{localhost}}}+~). If run directly it is installed and run from the directory ~+{{{/home/test/netarchive/USER}}}+~.

Download and installation

Action(edit)

For a quick start, we have prepared a bash script that starts all the necessary components on one machine. We will use this script throughout this quickstart manual to allow you to get a feel for what the system can do and how it works without having to deal with issues of distributing to other servers.

Base system required

For the quick startup, NetarchiveSuite requires

  • a Linux system.
  • Note that for the quickstart, you must be able to run a browser on the machine that you run the system on - this is an artifact of the quickstart system and is not the case in the full system. Root access is not required.
  • Running Ant application - Java based build tool like make
  • Sun Java SE (Standard Edition) JDK version 1.6.0_07 running on the Linux system.
  • Newer versions of Java may work, but have not been tested. Older versions of Java will not work correctly. The latest download version of Sun Java 6 SE is "JDK 6 Update 13" (19 May 2009).

To check that you have the right version of Java do the following

  • start a terminal login to the linux system as a ordinary user
  • check java version is version 1.6.0_07 (or higher) by writing:
  • $ java -version

  • you should then see
  • linux>java -version
    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

Downloading

Download and unzip of the newest release is described here

  • start a terminal login to the linux system as a ordinary user in a bash shell
  • make a directory for the download e.g. directory  ~/netarchive 

  •  $ mkdir ~/netarchive 

  • start a web browser, e.g. Firefox
  • follow the registration and download instructions on ["Get NetarchiveSuite"] and save the download file to the directory you created earlier

  • go to the directory
  •  $ cd ~/netarchive 

  • unzip the binary package
  •  $ unzip NetarchiveSuite*.zip 

  • if downloading the trunk:
  •  $ cd trunk 

  •  $ ant warfiles 

JMS

NetarchiveSuite uses JMS for inter-process communication. JMS is the Java Messaging Service, which provides asynchronous communication between processes. You do not need any knowledge of JMS to use NetarchiveSuite. However you need to make sure that there are not already JMS brokers running on your system using PORT 8100.

Currently only the open-source version of Sun's JMS implementation is supported, since some functionality of other implementations does not match our assumptions well.

To download and install it, do the following:

  • open this link in a browser window https://mq.dev.java.net/downloads.html

  • click the Linux Link under version 4.1 Binary Downloads to download a file mq4_1-binary-Linux_X86-20070816.jar (or later)

  • save the download file to the created directory you created earlier e.g.  ~/netarchive 

  • go to the directory
  •  $ cd ~/netarchive 

  • unpack the jar file (this creates a directory mq and three files with licensing information)
  •  $ jar xvf mq4_1-binary-Linux_X86-20070816.jar 

  • run imqbroker in order to create settings file
  •  $ chmod +x ./mq/bin/imqbrokerd 

  •  $./mq/bin/imqbrokerd 

  • For this to work, it may be necessary to set the IMQ_JAVAHOME environment variable to point to your java installation directory, e.g. /usr/java/jdk1.6.0_07:  $ export IMQ_JAVAHOME=/usr/java/jdk1.6.0_07 

  • check that  imqbrokerd  starts and that the last message is  "Broker <localhost>:7676 ready" 

  • stop imqbroker by pressing  control-C 

  • edit settings to allow for enough listeners to a queue by doing
    • edit  ~/netarchive/mq/var/instances/imqbroker/props/config.properties 

    • uncomment and specify count=20 for listeners by changing line
    • "#            imq.autocreate.queue.maxNumActiveConsumers" 

    • ->

    • "            imq.autocreate.queue.maxNumActiveConsumers=20"

Configuration

Assuming the NetarchiveSuite files were unzipped to the directory ~/netarchive as described above, you must do the following to configure the NetarchiveSuite for your system:

For the simple harvest setup, the startup script needs to know a few paths. You can either do this by exporting the environment variables in your shell or by changing the harvest script.

The following describes how to set the environment variables:

  • set JAVA to point to your java installation directory, e.g. /usr/java/jdk1.6.0_07

  •  $ export JAVA=/usr/java/jdk1.6.0_07 

  • set JAVA_HOME to point to your java installation directory, e.g. /usr/java/jdk1.6.0_07

  •  $ export JAVA_HOME=/usr/java/jdk1.6.0_07 

  • set IMQ_JAVAHOME to point to your java installation directory, e.g. //usr/java/jdk1.6.0_07

  •  $ export IMQ_JAVAHOME=/usr/java/jdk1.6.0_07 

  • set IMQ to the full path of the executable of the Sun JMS broker, e.g. ~/netarchive/mq/bin/imqbrokerd

  •  $ export IMQ=~/netarchive/mq/bin/imqbrokerd 

Note that these environment variables need to be set every time you log in, if you wish to use the quickstart scripts. You can also edit the file harvest.sh and set the variables there, if you wish the settings to be persistent.

  • Download following attached files to e.g. /home/test/netarchive:

[http://netarchive.dk/suite/Installation_Manual_3.10/AppendixC?action=AttachFile&do=get&target=RunNetarchiveSuite.sh RunNetarchiveSuite.sh]

[http://netarchive.dk/suite/Installation_Manual_3.10/AppendixC?action=AttachFile&do=get&target=deploy_example_one_machine.xml deploy_example_one_machine.xml]

The first script is a simple script for doing all the steps during deployment. It takes a NetarchiveSuite package ('.zip'), a configuration file (the second file), and a temporary installation directory as arguments (in the given order).

In the configuration file all the applications are placed on one machine (e.g. the current machine, localhost). If run directly it is installed and run from the directory /home/test/netarchive/USER.

E.g.

cd /home/test/netarchive
bash RunNetarchiveSuite.sh NetarchiveSuite.zip deploy_example_one_machine.xml USER/
#if you have not setup your ssh keygen correctly, you need to login some times before the installation finish successfully. You must allso have permission to ssh and scp to localhost ( try e.g "ssh localhost" and "scp somefile localhost:")

The script creates a "USER" folder in e.g. /home/test/netarchive , which contains e.g. methods for starting and stopping NetarchiveSuite and starts the whole NetarchiveSuite.

  • if running on trunk, make sure to have generated jar files first
  • $ ant jarfiles 

  • start a web browser by e.g.  $ mozilla  Note that it is important that the browser is started on the same machine as the simple harvest script is run on.

  • write url in the started browser http://localhost:8074/HarvestDefinition

  • You can now see the webinterface in the browser
  • You can now create, run and browse according to the following or the User Manual

Quick Start Manual 3.10/Download and installation (last edited 2010-08-16 10:24:29 by localhost)