Revision 5153
Added by daigle almost 15 years ago
src/scripts/workflowscheduler-db-scripts/ws-create-db.txt | ||
---|---|---|
1 |
Instructions on initially creating the workflow scheduler database. |
|
2 |
|
|
3 |
Update postgres configuration |
|
4 |
Edit: |
|
5 |
/etc/postgresql/<postgres_version>/main/pg_hba.conf |
|
6 |
Add the following Line: |
|
7 |
host workflowscheduler workflowscheduler 127.0.0.1 255.255.255.255 password |
|
8 |
|
|
9 |
Create database: |
|
10 |
type: createdb metacat |
|
11 |
|
|
12 |
Create workflowscheduler user |
|
13 |
Log in to postgreSQL by typing: |
|
14 |
psql metacat |
|
15 |
At the psql prompt, create the workflowscheduler user by typing: |
|
16 |
CREATE USER workflowscheduler WITH UNENCRYPTED PASSWORD 'your_password'; |
|
17 |
where 'your_password' is whatever password you would like for the workflowscheduler user. |
|
18 |
Exit PostgreSQL by typing: |
|
19 |
\q |
|
20 |
Restart the PostgreSQL database to bring in changes: |
|
21 |
/etc/init.d/postgresql-8.3 restart |
|
22 |
|
|
23 |
Test setup |
|
24 |
Log out of the postgres user account by typing: |
|
25 |
logout |
|
26 |
Test the installation and workflowscheduler account by typing: |
|
27 |
psql -U workflowscheduler -W -h localhost workflowscheduler |
|
28 |
|
|
29 |
Create tables: |
|
30 |
Open the table creation script in this directory called: |
|
31 |
ws-tables-postgres.sql |
|
32 |
Copy each sql command and run in psql prompt. |
|
33 |
|
|
34 |
Populate tables |
|
35 |
Open the table creation script in this directory called: |
|
36 |
ws-loaddtdschema-postgres.sql |
|
37 |
Copy each sql command and run in psql prompt. |
|
38 |
|
docs/dev/workflowscheduler/createWorkflowSchedulerDB.txt | ||
---|---|---|
1 |
Instructions on initially creating the workflow scheduler database. |
|
2 |
|
|
3 |
Update postgres configuration |
|
4 |
Edit: |
|
5 |
/etc/postgresql/<postgres_version>/main/pg_hba.conf |
|
6 |
Add the following Line: |
|
7 |
host workflowscheduler workflowscheduler 127.0.0.1 255.255.255.255 password |
|
8 |
|
|
9 |
Create database: |
|
10 |
type: createdb metacat |
|
11 |
|
|
12 |
Create workflowscheduler user |
|
13 |
Log in to postgreSQL by typing: |
|
14 |
psql metacat |
|
15 |
At the psql prompt, create the workflowscheduler user by typing: |
|
16 |
CREATE USER workflowscheduler WITH UNENCRYPTED PASSWORD 'your_password'; |
|
17 |
where 'your_password' is whatever password you would like for the workflowscheduler user. |
|
18 |
Exit PostgreSQL by typing: |
|
19 |
\q |
|
20 |
Restart the PostgreSQL database to bring in changes: |
|
21 |
/etc/init.d/postgresql-8.3 restart |
|
22 |
|
|
23 |
Test setup |
|
24 |
Log out of the postgres user account by typing: |
|
25 |
logout |
|
26 |
Test the installation and workflowscheduler account by typing: |
|
27 |
psql -U workflowscheduler -W -h localhost workflowscheduler |
|
28 |
|
|
29 |
Create tables: |
|
30 |
Open the table creation script at: |
|
31 |
<metacat>/src/scripts/workflowscheduler-db-scripts/ws-tables-postgres.sql |
|
32 |
Copy each sql command and run in psql prompt. |
|
33 |
|
|
34 |
Populate tables |
|
35 |
Open the table creation script at: |
|
36 |
<metacat>/src/scripts/workflowscheduler-db-scripts/ws-loaddtdschema-postgres.sql |
|
37 |
Copy each sql command and run in psql prompt. |
|
38 |
|
docs/dev/workflowscheduler/installWorkflowScheduler.txt | ||
---|---|---|
1 |
These are the steps to install the workflow scheduler, workflow run engine and kepler. |
|
2 |
At the time of this writing, the workflow scheduler is associated with a single instance |
|
3 |
of metacat. The workflow run engine and kepler are installed on the same machine as the |
|
4 |
workflow scheduler. |
|
5 |
|
|
6 |
These instructions assume that you already have a working copy of apache and tomcat. |
|
7 |
|
|
8 |
Build the workflow scheduler: |
|
9 |
-- check out Metacat trunk code |
|
10 |
-- in the root directory, run "ant clean war -f workflowscheduler.build.xml" |
|
11 |
-- the workflowsheduler.war file will be in ./workflowscheduler.dist/ |
|
12 |
|
|
13 |
Deploy the workflow scheduler: |
|
14 |
-- copy the workflowscheduler.war file to the tomcat webapp directory on the target |
|
15 |
server |
|
16 |
-- unjar the war file so you can modify the configuration |
|
17 |
-- in the webapp dir, mkdir workflowscheduler |
|
18 |
-- cd workflowscheduler |
|
19 |
-- jar -xvf ../workflowscheduler.war |
|
20 |
-- vi WEB-INF/workflowscheduler.properties |
|
21 |
-- change the workflowScheduler.authServiceUrl and |
|
22 |
workflowScheduler.authorizationServiceUrl to point to the instance of metacat |
|
23 |
associated with the scheduler. |
|
24 |
|
|
25 |
Create the database: |
|
26 |
-- follow the instructions in the following file in this directory: |
|
27 |
createWorkflowSchedulerDB.txt |
|
28 |
|
|
29 |
Configure Metacat: |
|
30 |
-- on the instance of Metacat associated with this workflowscheduler, edit |
|
31 |
WEB-INF/metacat.properties |
|
32 |
-- change the workflowScheduler.url to point to the workflow scheduler server |
|
33 |
|
|
34 |
Restart: |
|
35 |
-- Restart the tomcat instance for the scheduler and for metacat. |
|
36 |
|
|
37 |
Install R |
|
38 |
-- follow the instructions at: http://cran.r-project.org/doc/manuals/R-admin.html |
|
39 |
to download and install r |
|
40 |
-- for rhel4, the following steps were applied |
|
41 |
-- download source tar.gz at: |
|
42 |
http://cran.cnr.berkeley.edu/sources.html |
|
43 |
-- tar -xvzf R-2.10.0.tar.gz |
|
44 |
-- install gcc: up2date gcc-g77 |
|
45 |
-- run configure with no x and no readline options |
|
46 |
./configure --with-x=no --with-readline=no |
|
47 |
-- run "make" |
|
48 |
-- run "make install" |
|
49 |
|
|
50 |
Install kepler: |
|
51 |
-- mkdir /usr/kepler |
|
52 |
-- cd /usr/kepler |
|
53 |
-- svn co https://code.kepler-project.org/code/kepler/trunk/modules/build-area |
|
54 |
-- cd build-area |
|
55 |
-- ant change-to -Dsuite=wrp |
|
56 |
-- ant run |
|
57 |
|
|
58 |
Install workflow run engine: |
|
59 |
-- follow the steps listed in: |
|
60 |
http://code.kepler-project.org/code/kepler/trunk/modules/webservice/KeplerWebService/doc/kepler-execution-engine-installation.txt |
Also available in: Unified diff
Create some basic workflow scheduler system installation documents