3. Installation - GoogleCode

assistantashamedΔιαχείριση Δεδομένων

29 Νοε 2012 (πριν από 4 χρόνια και 8 μήνες)

286 εμφανίσεις

1

Installation guide for CLRC Data Portal

by the DataPortal Team (Data Management Group e
-
Science Centre CCLRC)

2

Table of Contents:

1.

Pre
-
requisites

................................
................................
................................
.....................

3

1.1

Java SDK

................................
................................
................................
.........................

3

1.2

Tomcat Server

................................
................................
................................
................

3

1.3

PostgreSQL database

................................
................................
................................
....

3

1.4

UDDI Server
................................
................................
................................
...................

3

1.5

Globus

................................
................................
................................
.............................

3

1.5.1

Grid Packaging Toolkit (GPT)

................................
................................
............

3

1.5.2

Globus
Toolkit

................................
................................
................................
.......

4

1.5.3

MyProxy Server

................................
................................
................................
.....

4

1.5.4

Java CoG Kit

................................
................................
................................
..........

4

1.6

Jakarta ANT

................................
................................
................................
...................

4

2.

Certificates
................................
................................
................................
..........................

4

2.1

creating proxy ce
rtificates for the MyProxy Server

................................
.................

4

2.1.1

Prerequisites:
................................
................................
................................
..........

4

2.1.2

To store proxy:

................................
................................
................................
.......

4

2.1.3

For Further information:

................................
................................
......................

6

3.

Installation
................................
................................
................................
..........................

6


3


1.

PRE
-
REQUISITES

The following packages are required prior to the installation of the dataportal

(note the installation and configuration of the CLRC DataPortal has only been tested
on an x86 Suse 8.1 Linux distribution with the ve
rsion of the various required
packages mentioned below).

1.1

Java SDK

Version: Java 1.4.1_01 in rpm format from
http://java.sun.com


1.2

Tomcat Server

Version 4.1.18 in rpm format (including admin, manager and example applicatio
ns)
from
http://jakarta.apache.org/tomcat/index.html

1.3

PostgreSQL database

Version 7.2.2 from tarball (i.e. a file ending .tar.gz), download the latest version from
ftp://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub/latest/

1.4

UDDI Server

Systinet WASP Server for Java: 4.5


note this is commercial software


however at the
time of writing this document the website
(
http://www.systinet.com/products/buy
)
quoted the following:

Free "Single CPU" Deployments

Systinet's WASP Server products (Java and C++ versions) are free for production
deployment on 1
-
CPU systems by E
nd
-
Users within enterprises. Click here to obtain a
free "End
-
User Single CPU Deployment License" for WASP Server for Java, or WASP
Server for C++.

Download from
http://www.systinet.com/product
s/download_center
.

1.5

Globus

For Java Cog compatiblity reasons we used older versions of the Globus toolkit and
MyProxy as Java Cog.

1.5.1

Grid Packaging Toolkit (GPT)

Version 1.0 of the GPT , available from
http://www.globus.org/gt2/install/download.html

4



1.5.2

Globus Toolkit

Version 2.0 of the Globus Toolkit, available from
http://www.globus.org/gt2/install/download.html

1.5.3

MyProxy Server

Versio
n
v0.4.5, available from
http://www.ncsa.uiuc.edu/Divisions/ACES/MyProxy/

1.5.4

Java CoG Kit

Version 0.9.13, available from
http://www
-
uni
x.globus.org/cog/java/index.php

1.6

Jakarta ANT

Version 1.5.1, available from
http://ant.apache.org/bindownload.cgi

2.

CERTIFICATES

2.1

creating proxy certificates for the MyProxy Server

2.1.1

Prerequisites:


1.

Globus has

been installed on machine and installation directory is pointed to by
environment variable GLOBUS_LOCATION

2.

User certificate and private key have been placed in ~/.globus (See
http://www.grid
-
support.ac.uk/ca/user
-
documentation/ for information about
obtai
ning and installing user certificates if within the eScience community).

3.

MyProxy package has been installed on user machine.

4.

User is authorised to store proxies on the machine running the MyProxy server
(see $GLOBUS_LOCATION/etc/myproxy
-
server.config).


2.1.2

To

store proxy:


1. Set up environment variables. From shell:


5


{csh} source $GLOBUS_LOCATION/etc/globus
-
user
-
env.csh


{sh} . $GLOBUS_LOCATION/etc/globus
-
user
-
env.sh


2. Run myproxy
-
init command:



myproxy
-
init
-
s <MyProxyServer>
-
l <username>



User wi
ll be prompted for the pass phrase to decrypt their private key, and an
additional pass phrase with which to


protect the proxy stored in the MyProxy server.



An example output is:



[doo@nowhere doo]$ myproxy
-
init
-
s someComputer.dl.ac.uk
-
l scooby



Your identity: /C=UK/O=eScience/OU=CLRC/L=DL/CN=scooby doo


Enter GRID pass phrase for this identity:


Creating proxy ............................................ Done


Your proxy is valid until: Tue Mar 18 11:59:39 2003


Enter MyProxy Pass Phrase:


Veri
fying password
-

Enter MyProxy Pass Phrase:


A proxy valid for 168 hours (7.0 days) for user scooby now exists on
someComputer.dl.ac.uk.




Notes: 1. Can set environment variable MYPROXY_SERVER instead of using
-
s
option.

6


2. If
-
l option is o
mitted then contents of LOGNAME environment variable used
instead.

2.1.3

For Further information:

Read documentation at http://www.ncsa.uiuc.edu/Divisions/ACES/MyProxy/

3.

INSTALLATION

Assuming you have the package dataportal
-
v3.tar.gz or dataportal
-
v3.zip:

1.

uncomp
ress the files to a directory (the $TARGET directory)

2.

change directory to the target directory

3.

update the build.properties file with the location of the tomcat installation and the
manager application username and password

4.

in each subdirectory look in the
docs directory for a file called config.txt

i.e. in the $TARGET/dataportal/<module subdirectory>/docs directory

the instructions in each of these should be followed and modified for the local
requirement before going any further.

5.

assuming all other service
s are up and running (i.e. PostgreSQL, Tomcat, MyProxy
and the UDDI server) run the following:



ant



ant install

The dataportal should now be running on:

http://<hostname>:<tomcat port>/dataportal

e.g. http://esc.dl.ac.uk:9000/dataportal