Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Panel

mak@aegir $ ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
mak@aegir $ echo $ANT_HOME
/usr/apache-ant-1.7.0/
mak@aegir $ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

mak@aegir $ echo $CLASSPATH
CLASSPATH: Undefined variable.

Panel

mak@aegir $ tar -zxf perfSONAR-SQL-MA-1.0-RC5.tar.gz
mak@aegir $ ln -s sqlma/perfSONAR-SQL-MA-1.0-RC5/perfsonar/ perfsonar-sqlma
mak@aegir $ cd perfsonar-sqlma/
mak@aegir $ ls
ant/  build/  conf/  contrib/  data/  doc/  lib/  log/  schema/  src/

Panel

mak@aegir $ ant -q pre-install
     [echo] Preparing the installation of SQL MA...
     [echo]
     [echo] Answer to all questions. If you go wrong, cancel (ctrl-c) and start again.
     [echo]
    [input] Enter the name of the service [perfSONAR-SQL-MA-1.0-RC7]: [perfSONAR-SQL-MA-1.0-RC7]
slac-sqlma
    [input] Enter the path where you want to install the service [/usr/perf-sqlma/webapps]: [/usr/perf-sqlma/webapps]

    [input] Do you want me to download and install the application server Tomcat (apache-tomcat-6.0.7) for you?  (y, [n])
y
    [input] Enter the path for the Tomcat installation: [/usr/perf-sqlma/apache-tomcat-6.0.7]: [/usr/perf-sqlma/apache-tomcat-6.0.7]
/usr/perf-sqlma/tomcat
    [input] Enter a URL of the Tomcat download (mirrors can be found on http://tomcat.apache.org/) [http://www.perfsonar.net/download/dependencies/preinstall_download.php?product=tomcat&version=6.0.7]: [http://www.perfsonar.net/download/dependencies/preinstall_download.php?product=tomcat&version=6.0.7]

     [echo] Installing the Tomcat (please be patient, this can take some time) ...
    [input] Enter the port which will be used by your application server Tomcat [8080]: [8080]
     [echo] Make sure that your application server Tomcat has the same port
     [echo] for the http communication. If not then configure the Tomcat in order
     [echo] to use this port number.
     [echo]
    [input] Please do it now and press Enter when finished

     [echo]
    [input] Usage of eXist xml database is recommended for the service. Installing/configuring this database as a web application in your Tomcat is also suggested. Do you want me to do this for you?  ([y], n)

    [input] Do you want me to download eXist web application package (if not you have to do it manually)?  ([y], n)

    [input] Enter a URL of eXist web application package (exist-1.0.1.war) [http://www.perfsonar.net/download/dependencies/preinstall_download.php?product=exist-war&version=1.0.1]: [http://www.perfsonar.net/download/dependencies/preinstall_download.php?product=exist-war&version=1.0.1]

    [input] Enter the path of directory where eXist war file will be located [/usr/perf-sqlma]: [/usr/perf-sqlma]

     [echo] Downloading eXist war file (please be patient, this can take some time) ...
     [echo] Please, insert now the following xml tag 'Context'
     [echo] into Tomcat configuration file server.xml
     [echo] (/usr/perf-sqlma/tomcat/conf/server.xml)
     [echo] inside existing xml tag 'Host':
     [echo]
     [echo]     <Context path='/exist'
     [echo]         docBase='/usr/perf-sqlma/exist-1.0.1.war'>
     [echo]     </Context>
     [echo]
    [input] Please do it now and press Enter when finished

    [input] Enter the eXist user name:
sqlmaservice
    [input] Enter the pasword for eXist user name sqlmaservice:
sqlmaservice
    [input] Enter the password for admin eXist user []: []

     [echo] This service requires access to the relational database
     [echo] (mySQL or postgeSQL but others can be used as well).
     [echo] Make sure that you have one or install it from scratch.
     [echo]
    [input] Please do it now and press Enter when finished

     [echo] In order to maintain data of utilization metric and/or L2 path status metric,
     [echo] please, prepare your relational database.
     [echo] In case of mySQL use simple script file mysql-sqlma-dbsetup.sql
     [echo] that you can find in conf directory (/usr/perf-sqlma/perfSONAR-SQL-MA-1.0-RC7/perfsonar/conf)
     [echo] of perfSONAR SQL MA installation package.
     [echo] In case of postgreSQL use psql-sqlma-dbsetup.sql.
     [echo] (Warning: remember to change the password for perfsonar_ma user!)
     [echo]
    [input] Please do it now and press Enter when finished

BUILD SUCCESSFUL
Total time: 6 minutes 46 seconds

Panel

Panel

mak@aegir $ ant -q configure
    [input] Enter the path of sql metadata config file [/usr/sqlma/perfSONAR-SQL-MA-1.0-RC7/perfsonar/conf/sql-database_TEST.xml]: [/usr/sqlma/perfSONAR-SQL-MA-1.0-RC7/perfsonar/conf/sql-database_TEST.xml]

     [echo]
    [input] Do you want to use data of L2 path status metric in domain scope which are or will be stored in your relational database?  ([y], n)
y
     [echo]
     [echo] Provide correct jdbc connection parameters
     [echo] for relational database where data of L2 path status metric - domain scope
     [echo] are stored.
     [echo]
    [input] Enter the name of databse you are going to use?  ([mysql], postgresql)

    [input] Enter database jdbc address URL [jdbc:mysql://127.0.0.1/perfsonar_ma]?  [jdbc:mysql://127.0.0.1/perfsonar_ma]

    [input] Enter database user name [perfsonar_ma]?  [perfsonar_ma]

    [input] Enter the password of user name perfsonar_ma [testpass]?  [testpass]

     [echo]
    [input] Do you want to use data of L2 path status metric in interdomain scope which are or will be stored in your relational database?  ([y], n)
y
     [echo]
     [echo] Provide correct jdbc connection parameters
     [echo] for relational database where data of L2 path status metric - interdomain scope
     [echo] are stored.
     [echo]
    [input] Enter the name of databse you are going to use?  ([mysql], postgresql)

    [input] Enter database jdbc address URL [jdbc:mysql://127.0.0.1/perfsonar_ma]?  [jdbc:mysql://127.0.0.1/perfsonar_ma]

    [input] Enter database user name [perfsonar_ma]?  [perfsonar_ma]

    [input] Enter the password of user name perfsonar_ma [testpass]?  [testpass]

     [echo]
    [input] Do you want to use data of utilization metric which are or will be stored in your relational database?  ([y], n)

     [echo]
     [echo] Provide correct jdbc connection parameters
     [echo] for relational database where data of utilization metric
     [echo] are stored.
     [echo]
    [input] Enter the name of databse you are going to use?  ([mysql], postgresql)

    [input] Enter database jdbc address URL [jdbc:mysql://127.0.0.1/perfsonar_ma]?  [jdbc:mysql://127.0.0.1/perfsonar_ma]

    [input] Enter database user name [perfsonar_ma]?  [perfsonar_ma]

    [input] Enter the password of user name perfsonar_ma [testpass]?  [testpass]

     [echo]
     [echo] If you want to change provided jdbc connection parameters manually,
     [echo] because of some reasons,
     [echo] you can do this in configuration files (ibatis-SqlMapConfig-*.xml)
     [echo] in /usr/sqlma/perfSONAR-SQL-MA-1.0-RC7/perfsonar/conf directory.
     [echo] After such change, when the service is already deployed, you must
     [echo] redeploy the service (undeploy and deploy again).
     [echo]
    [input] Press Enter to continue

    [input] Do you want the service to accept messages with measurement data and store them?  (y, [n])

    [input] Turn on service registration to Lookup Service?  (y, [n])

BUILD SUCCESSFUL
Total time: 1 minute 3 seconds

Panel
Wiki Markup
&nbsp; mak@aegir $ ./startup.sh
Using CATALINA_BASE:&nbsp;&nbsp; /usr/sqlma/tomcat
Using CATALINA_HOME:&nbsp;&nbsp; /usr/sqlma/tomcat
Using CATALINA_TMPDIR: /usr/sqlma/tomcat/temp
Using JRE_HOME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/java/jdk1.6.0/
mak@aegir $ cd ../../
mak@aegir $ ls
exist-1.0.1.war&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perfSONAR-SQL-MA-1.0-RC7.tar.gz&nbsp; tomcat/
perfSONAR-SQL-MA-1.0-RC7/&nbsp; perfsonar@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; webapps/
mak@aegir $ cd perfsonar/
mak@aegir $ cd ant/
mak@aegir $ ant \-q deploy
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Deploying the service...
&nbsp;&nbsp;&nbsp; \[input\] Do you want me to start the application server Tomcat for you?&nbsp; (\[y\], n)
y
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Please, insert now the following xml tag 'Context'
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] into Tomcat configuration file server.xml
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] (/usr/sqlma/tomcat/conf/server.xml)
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] inside existing xml tag 'Host':
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp;&nbsp;&nbsp;&nbsp; <Context path='/slac-sqlma'
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; docBase='/usr/sqlma/webapps/slac-sqlma'>
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp;&nbsp;&nbsp;&nbsp; </Context>
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]
&nbsp;&nbsp;&nbsp; \[input\] Please do it now and press Enter when finished

&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Please, make sure that Tomcat is running.
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] You can do it using your web browser and connect the address [http://127.0.0.1:8080]
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] or looking at Tomcat's log file (/usr/sqlma/tomcat/logs/catalina.out).
&nbsp;&nbsp;&nbsp; \[input\] Press Enter when finished

&nbsp;&nbsp;&nbsp; \[input\] Do you want me to add new user sqlmaservice (provided in the pre-install step) and initiate the xml database eXist (If your eXist is already configured and initialized for MA answer 'n'.&nbsp; But probably it's your first run of this installation script so you have not added this user and initialized the database yet.) ?&nbsp; (\[y\], n)

&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] The directory with all required service files has been created.
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] The next step in deploy action is installing the service in Tomcat.&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] (If you are an expert in Axis and want to install the service otherway
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp; than default one use ctrl+c to stop the script in this moment)
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]
&nbsp;&nbsp;&nbsp; \[input\] Press Enter

&nbsp;&nbsp;&nbsp;&nbsp; \[java\] Exception: AxisFault
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultCode:
{http://xml.apache.org/axis/}
HTTP
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultSubcode:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultString: (404)/slac-sqlma/services/AdminService
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultActor:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultNode:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultDetail:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp;&nbsp;&nbsp;&nbsp; {}:return code:&nbsp; 404
&nbsp;&nbsp;&nbsp;&nbsp; \[java\] <html><head><title>Apache Tomcat/6.0.7 - Error report</title><style><\!\--H1-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
-&nbsp;-

 -H2-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
-&nbsp;-

 -H3-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
-&nbsp;-

 -BODY-
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
-&nbsp;-

 -B-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
-&nbsp;-

 -P-
{f ont-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
-&nbsp;-

-A-
{color : black;}
-&nbsp;-

-A.name-
{color : black;}
-&nbsp;-

-HR-
{color : #525D76;}
-&nbsp;-\-></style> </head><body><h1>HTTP Status 404 - /slac-sqlma/services/AdminService</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/slac-sqlma/services/AdminService</u></p><p><b>description</b> <u>The requested resource (/slac-sqlma/services/AdminService) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.7</h3></body></html>
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp;&nbsp;&nbsp;&nbsp;
{http://xml.apache.org/axis/}
HttpErrorCode:404
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]
&nbsp;&nbsp;&nbsp;&nbsp; \[java\] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 minutes 23 seconds