Author: chathuri
Date: Mon Oct 22 14:59:26 2012
New Revision: 1400906
URL: http://svn.apache.org/viewvc?rev=1400906&view=rev
Log:
updating docs
Modified:
airavata/site/trunk/content/architecture/overview.mdtext
airavata/site/trunk/content/documentation/deployment.mdtext
Modified: airavata/site/trunk/content/architecture/overview.mdtext
URL:
http://svn.apache.org/viewvc/airavata/site/trunk/content/architecture/overview.mdtext?rev=1400906&r1=1400905&r2=1400906&view=diff
==============================================================================
--- airavata/site/trunk/content/architecture/overview.mdtext (original)
+++ airavata/site/trunk/content/architecture/overview.mdtext Mon Oct 22
14:59:26 2012
@@ -58,5 +58,4 @@ implements the WS-Eventing and WS-Notifi
communications with clients behind firewalls and overcomes network glitches.
As an example, the workflow execution
engine sends out events in various stages, including start, end, failure,
successful invocation, of its workflow
execution.
-* Registry-API: A thick client registry API for Airavata to put and get
documents. Current JCR implementation is
-supported by Jack-Rabbit.
\ No newline at end of file
+* Registry-API: A thick client registry API for Airavata to put and get
documents. Current registry implementation is on top of derby or MySQL.
Modified: airavata/site/trunk/content/documentation/deployment.mdtext
URL:
http://svn.apache.org/viewvc/airavata/site/trunk/content/documentation/deployment.mdtext?rev=1400906&r1=1400905&r2=1400906&view=diff
==============================================================================
--- airavata/site/trunk/content/documentation/deployment.mdtext (original)
+++ airavata/site/trunk/content/documentation/deployment.mdtext Mon Oct 22
14:59:26 2012
@@ -1,20 +1,37 @@
### How to start Airavata System and what is the order to start each component.
-To start Airavata system users have to use the scripts provided in
AIRAVATA_HOME/bin/ and if you are running all the components
-with default setup you have to start the components in the following order.
-
-1. jackrabbit-server.sh - This is the Jackrabbit server startup script, before
starting any other component, you have to start the
- registry instance first because all the components
are communicating with Registry.
-
-2. airavata-server.sh - This starts the WS-Messenger components and GFac
service in Apache Axis2 Container. This is pointing to the
- Registry started in previous step and use the
Registry URL is localhost:8081, if you are starting in a
- different URL, you have to change
AIRAVATA_HOME/standalone-server/conf/repository.properties file.
-
-3. xbaya-gui.sh - Now you have available GFac Service running with a
Registry, so its time for you to start XBaya and run
- your Applications. But if you want XBaya to run with
normal Web services, not with GFac Service you do not
- have to start Airvata Service, you can simply use
Xbaya alone, if you require provenance, you have to start
- Registry.
+To start Airavata system users have to use the scripts provided in
<AIRAVATA_HOME>/bin/. Here we define <AIRAVATA_HOME> as the location where
+you extract apache airavata binary. If you are running all the components with
default setup, you have to start the components in the following order:
+1. airavata-server.sh - This starts the WS-Messenger component and the GFac
service in the Apache Axis2 Container and points to the default
+ derby database server, which runs on port "1527". If
you are starting with a different registry URL, you have to make
+ the corresponding change in the
<AIRAVATA_HOME>/standalone-server/conf/airavata-server.properties file.
+
+2. xbaya-gui.sh - Now you have available GFac Service running with a
Registry, so its time for you to start XBaya and run
+ your Applications. For that copy
"<AIRAVATA_HOME>/standalone-server/conf/airavata-server.properties"
+ file into "<AIRAVATA_HOME>/bin" folder. But if you
want XBaya to run with normal Web services, not with GFac
+ Service you do not have to start Airvata Service,
you can simply use Xbaya alone, if you require provenance,
+ you have to start Registry.
+
+### How to start the Airavata System Components with MySQL
+
+By default, Airavata is running using Apache Derby as the backend database.
You can use MySQL database instead of default derby database if
+you wish. Here we define <AIRAVATA_HOME> as the location where you extract
Apache Airavata binary.
+
+1. Create a new user called airavata with password airavata in running MySQL
instance
+2. Create a mysql database in your server with required name for user airavata
(Assume name is:persistent_data)
+3. Copy mysql driver jar (mysql-connector-java-5.1.6.jar) to
<AIRAVATA_HOME>/standalone-server/lib
+4. Edit jdbc connection URLs at airavata-server.properties file that resides
in <AIRAVATA_HOME>/standalone-server/conf.
+You can achieve this by just un-commenting out parameters under "configuration
for mysql" section and commented-out the default
+derby configurations.
+ registry.jdbc.url=jdbc:mysql://localhost:3306/persistent_data
+ registry.jdbc.driver=com.mysql.jdbc.Driver
+5. Go to <AIRAVATA_HOME>/bin and start the script airavata-server.sh. Now
Airavata server will start with MySQL database
+(in this case persistent_data database).
+When starting XBaya, it should also point to the same database that we
specified when starting Airavata server. In order to do that,
+copy the same airavata-server.properties file that you have edited in the 2nd
step, to <AIRAVATA_HOME>/bin folder. Now you are ready
+to start XBaya. To start XBaya, go to <AIRAVATA_HOME>/bin folder and run the
script xbaya-gui.sh. Now XBaya will start with the
+same database that used to start Airavata server.
### How to Deploy Airavata on Tomcat
@@ -58,27 +75,24 @@ database and AIRAVATA_HOME/standalone-se
1. First create a mysql database in your server with required name (Assume
name is:wsmg and username/password is : airavata/airavata).
2. Create a tables in the above database using the following scripts.
- * AIRAVATA_HOME/standalone-server/bin/database_scripts/mgsBox-mysql.sql
- * AIRAVATA_HOME/standalone-server/bin/database_scripts/msgBroker-mysql.sql
+ AIRAVATA_HOME/standalone-server/bin/database_scripts/mgsBox-mysql.sql
+ AIRAVATA_HOME/standalone-server/bin/database_scripts/msgBroker-mysql.sql
-3. Change msgBox.properties and msgBroker.properties files located at
AIRAVATA_HOME/standalone-server/conf with database driver name and database
urls as below.
- * msgBox.jdbc.driver=com.mysql.jdbc.Driver
- *
msgBox.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=airavata&password=airavata
- * broker.jdbc.driver=com.mysql.jdbc.Driver
- *
broker.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=airavata&password=airavata
- * For mysql datbase add following entries.
- - msgBox.jdbc.driver=com.mysql.jdbc.Driver
- -
msgBox.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=airavata&password=airavata
- * For default derby database add following entries.
- - msgBox.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
- -
msgBox.jdbc.url=jdbc:derby:wsmg;create=true;user=airavata;password=airavata
+3. Change msgBox.properties and msgBroker.properties files located at
AIRAVATA_HOME/standalone-server/conf with database driver name and
+database urls as below.
+ msgBox.jdbc.driver=com.mysql.jdbc.Driver
+
msgBox.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=airavata&password=airavata
+ broker.jdbc.driver=com.mysql.jdbc.Driver
+
broker.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=airavata&password=airavata
Once you update the parameters, make sure that you have commented-out default
derby values and uncommented-out mysql values.
Now your msgBox.properties file would look like above.
In the similar manner update the msgBroker.properties file as well.
-4. Change the driver class name based on your driver and copy your driver(in
this case, it is mysql-connector-java-5.1.13-bin.jar) to
AIRAVATA_HOME/standalon-server/lib directory and start the server. To start the
server, go to AIRAVATA_HOME/bin folder and run the script
airavata-server.sh/airavata-server.bat. Now you are ready to go with Mysql
database.
+4. Change the driver class name based on your driver and copy your driver(in
this case, it is mysql-connector-java-5.1.13-bin.jar) to
+AIRAVATA_HOME/standalon-server/lib directory and start the server. To start
the server, go to AIRAVATA_HOME/bin folder and run the script
+airavata-server.sh/airavata-server.bat. Now you are ready to go with Mysql
database.
### How can I run WS-Messenger without using any database.