...
Ran ant -f build-sqlma.xml libs-sqlma
inside the ant
directory, which got a lot of jars etc from the wiki site and dumped then into /opt/perfSONAR/perfSONARcurrent-SQL_MA-src-snapshot-20060811/perfsonar/lib
eXist User Account Creation
...
Ran ant -f build-sqlma.xml configure-sqlma
, which creates a file at
/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONARopt/perfsonar/current-SQL_MA-src-snapshot-20060811/perfsonar/ant/const.properties (reran with /opt/ path rather than afs paths where possble)
Code Block |
---|
[ytl@net-desk1:/opt/perfSONAR/perfSONARcurrent-SQL_MA-src-snapshot-20060811/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/ant [copy] Copying 1 file to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf copy-properties: [copy] Copying 1 file to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/ant [copy] Copying 1 file to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf [copy] Copying 1 file to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/../apache-tomcat-5.5.17/webapps/axis]: /opt/tomcataxis/current/webapps/axis [echo] Accepted Axis path: /opt/tomcataxis/current/webapps/axis 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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/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 [http]: [echo] Accepted xmldb server is http://net-desk1.slac.stanford.edu:8680/exist/rest/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf/sql-database_TEST.xml]: /opt/perfSONAR/perfSONARcurrent-SQ LSQL_MA-src-snapshot-20060811/perfsonar/conf/sql-database_TEST.xml _get-sql-config-file_1: _get-sql-config-file_2: [echo] !!!!!! ERROR: Provided Accepted sql metadata config file does not exist !!!!!! : /opt/perfSONAR/current-SQL_MA/perfsonar/conf/sql-database_TEST.xml _get-sql-config-file_2: set-get-sql-config-file: set-service-properties-for-sqlma: [propertyfile] Updating property file: /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/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/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf/service.properties]: /opt/perfSONAR/perfSONARcurrent-SQL_MA-src-snapshot-20060811/perfsonar/conf/service.properties [input] Enter the path of components.properties file [/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060811/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf/components.properties]: /opt/perfSONAR/perfSONARcurrent-SQL_MA-src-snapshot-20060811/perfsonar/conf/components.properties [propertyfile] Updating property file: /opt/tomcat/current/conf/catalina.properties BUILD SUCCESSFUL Total time: 62 minutes 2610 seconds |
eXist Database Configuration
...
Code Block |
---|
[ytl@net-desk1:/opt/mysql/current]$ ./configure
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h net-desk1.slac.stanford.edu password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
|
Downloaded and installed the MySQL DataBase configuration/setup
MySQL Setup using:
Code Block |
---|
[ytl@net-desk1:/opt/mysql/current/bin]$ ./mysql -u root -p < /opt/perfSONAR/mysql-sqlma-dbsetup.sql
|
Which creates the following data in the MySQL DB:
Code Block |
---|
mysql> use perfsonar_ma
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+------------------------+
| Tables_in_perfsonar_ma |
+------------------------+
| domain_link |
| interdomain_link |
| perfsonar_utilization |
+------------------------+
3 rows in set (0.00 sec)
mysql> describe domain_link;
+--------------+--------------+------+-----+-------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+-------------------+-------+
| id | varchar(255) | NO | | | |
| time | timestamp | YES | | CURRENT_TIMESTAMP | |
| status_oper | varchar(255) | YES | | UNKNOWN | |
| status_admin | varchar(255) | YES | | UNKNOWN | |
| alarm_id_set | varchar(255) | YES | | NULL | |
| comments | varchar(255) | YES | | NULL | |
+--------------+--------------+------+-----+-------------------+-------+
6 rows in set (0.00 sec)
mysql> describe interdomain_link;
+--------------+--------------+------+-----+-------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+-------------------+-------+
| id | varchar(255) | NO | | | |
| time | timestamp | YES | | CURRENT_TIMESTAMP | |
| status_oper | varchar(255) | YES | | UNKNOWN | |
| status_admin | varchar(255) | YES | | UNKNOWN | |
| alarm_id_set | varchar(255) | YES | | NULL | |
| comments | varchar(255) | YES | | NULL | |
+--------------+--------------+------+-----+-------------------+-------+
6 rows in set (0.00 sec)
mysql> describe perfsonar_utilization;
+------------+-------------+------+-----+-------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+-------------+------+-----+-------------------+-------+
| metadataId | varchar(30) | NO | | | |
| value | float(16,4) | NO | | | |
| valueUnits | varchar(30) | YES | | NULL | |
| timeValue | int(11) | NO | | | |
| ts | timestamp | YES | | CURRENT_TIMESTAMP | |
+------------+-------------+------+-----+-------------------+-------+
5 rows in set (0.01 sec)
|
Running the xmldb-init-sqlma
ant call still doesn't work tho'.
Noticed that /opt/perfSONAR/perfSONAR-SQL_MA-src-snapshot-20060811/perfsonar/conf/service.properties
had the wrong port number for the service.r.access_points
, so changed it to 80.
Code Block |
---|
service.r.access_point=\
http\://net-desk1.slac.stanford.edu\:80/axis/services/MeasurementArchiveService
|