Files
The September 1st snapshot was downloaded and symlinked into the /opt
space.
[ytl@net-desk1:/opt/perfSONAR]$ ls -lah total 60K drwxr-xr-x 3 ytl ytl 4.0K Sep 1 12:05 . drwxr-xr-x 9 ytl ytl 4.0K Aug 29 12:18 .. lrwxrwxrwx 1 ytl ytl 14 Aug 9 16:30 current -> perfSONAR-1.0/ lrwxrwxrwx 1 ytl ytl 39 Sep 1 12:05 current-SQL_MA -> \ perfSONAR-SQL_MA-src-snapshot-20060901/ lrwxrwxrwx 1 ytl ytl 65 Aug 30 11:38 mysql-sqlma-dbsetup.sql -> /u/sf/ytl/Work/perfSONAR/SQLtypeMAService/mysql-sqlma-dbsetup.sql drwxrwxr-x 10 ytl ytl 4.0K Aug 9 16:51 perfSONAR-1.0 lrwxrwxrwx 1 ytl ytl 94 Aug 24 09:58 perfSONAR-SQL_MA-src-snapshot-20060811 -> \ /u/sf/ytl/Work/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811 lrwxrwxrwx 1 ytl ytl 94 Aug 30 10:25 perfSONAR-SQL_MA-src-snapshot-20060828 -> \ /u/sf/ytl/Work/perfSONAR/SQLtypeMAService/java/20060828/perfSONAR-SQL_MA-src-snapshot-20060828 lrwxrwxrwx 1 ytl ytl 95 Sep 1 12:07 perfSONAR-SQL_MA-src-snapshot-20060901 -> \ /u/sf/ytl/Work/perfSONAR/SQLtypeMAService/java/20060901/perfSONAR-SQL_MA-src-snapshot-20060901/
eXist Setup
i am assuming that i can use the setup from the 20060828 release.
MySQL Setup
Also assuming that i can use the setup from the 20060828 release.
SQL-MA Configuration
[ytl@net-desk1:/opt/perfSONAR/current-SQL_MA/perfsonar/ant]$ ant -f build-sqlma.xml configure-sqlma Buildfile: build-sqlma.xml configure-sqlma: copy-initconfig-for-sqlma: [copy] Copying 1 file to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/ant [copy] Copying 1 file to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf copy-properties: [copy] Copying 1 file to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/ant [copy] Warning: Could not find file \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/service.properties to copy. [copy] Copying 1 file to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf get-message-1: [echo] Start creating ant/const.properties file [echo] ----------------------------------------------------------- _get-java-path: get-java-path: [input] Enter the path of Java [/usr/local/java/current]: [echo] Accepted Java path: /usr/local/java/current get-axis-path: [input] Enter the path of Axis location \ [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/../apache-tomcat-5.5.17/webapps/axis]: /opt/axis/current [echo] Accepted Axis path: /opt/axis/current get-server-address: [input] Enter the address of host (perfSONAR service location) [localhost]: net-desk1.slac.stanford.edu [echo] Accepted server address: net-desk1.slac.stanford.edu get-server-port: [input] Enter the port of server [8080]: 80 [echo] Accepted server port: 80 set-const-properties-for-sqlma: [propertyfile] Updating property file: \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/ant/const.properties [echo] const.properties file created [input] Press Return key ... get-message-2: [echo] Start creating conf/service.properties file [echo] ----------------------------------------------------------- get-server-address: [input] Enter the address of host (perfSONAR service location) [localhost]: net-desk1.slac.stanford.edu [echo] Accepted server address: net-desk1.slac.stanford.edu get-xmldb-address: [input] Enter the address of xmldb eXist [localhost]: net-desk1.slac.stanford.edu [input] Enter the port of xmldb eXist [8090]: 8680 [input] Enter the type of access to xmldb eXist [xmlrpc]: [echo] Accepted xmldb server is xmldb:exist://net-desk1.slac.stanford.edu:8680/exist/xmlrpc/db/sqlmaconfig __get-sql-config-file: [input] Enter the path of sql metadata config file \ [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/sql-database_TEST.xml]: _get-sql-config-file_1: [echo] Accepted sql metadata config file: \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/sql-database_TEST.xml _get-sql-config-file_2: get-sql-config-file: set-service-properties-for-sqlma: [propertyfile] Creating new property file: \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/service.properties [echo] service.properties file created [input] Press Return key ... get-message-3: [echo] Start creating conf/log4j.properties file [echo] ----------------------------------------------------------- set-log4j-properties: [propertyfile] Updating property file: \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/log4j.properties [echo] log4j.properties file created [input] Press Return key ... get-message-4: [echo] Start adding properties to Tomcat catalina.properties file [echo] ----------------------------------------------------------- set-tomcat-properties: [input] Enter the path of Tomcat location \ [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/../apache-tomcat-5.5.17]: /opt/tomcat/current/ [input] Enter the path of service.properties file \ [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/service.properties]: /opt/perfSONAR/current-SQL_MA/perfsonar/conf/service.properties [input] Enter the path of components.properties file \ [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/conf/components.properties]: /opt/perfSONAR/current-SQL_MA/perfsonar/conf/components.properties [propertyfile] Updating property file: /opt/tomcat/current/conf/catalina.properties BUILD SUCCESSFUL Total time: 1 minute 27 seconds
Changed the access_point
parameter in service.properties
to point to the correct port number:
service.r.access_point=http\://net-desk1.slac.stanford.edu\:80/axis/services/MeasurementArchiveService
SQL-MA Compilation
Did a ant -f build-sqlma.xml libs-sqlma
to get all the libraries and jars required for the compilation.
Then did a build:
[ytl@net-desk1:/opt/perfSONAR/current-SQL_MA/perfsonar/ant]$ ant -f build-sqlma.xml build-sqlma Buildfile: build-sqlma.xml build-sqlma: clean-all: clean-jar-generic: compile-generic: [javac] Compiling 242 source files to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. jar-generic: [jar] Building jar: /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build/perfSONAR-generic.jar clean-jar-sqlma: compile-sqlma: compile-rrdma: [javac] Compiling 28 source files to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [copy] Copying 2 files to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build/org/perfsonar/service/web/wsdd jar-sqlma: clean-jar-rrdma: compile-rrdma: jar-rrdma: [jar] Building jar: \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build/perfSONAR-rrdma.jar [copy] Copying 1 file to \ /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060901/\ perfSONAR-SQL_MA-src-snapshot-20060901/perfsonar/build BUILD SUCCESSFUL Total time: 14 seconds
Yippee!