Upgrading to latest Version
Copy the contents of the owl-xxx-upgrade-packages.tar to the system being upgraded (extract contents)
Stop the owlweb using
./owlmanage stop=owlweb
Most upgrades will contain a series of owl-postgres alter statements. If your postgres instance is owned by DBA's and access has been restricted you may have to instruct the DBA to run the alter commands. The next steps will assume you are using owl-postgres that was installed with owl thus not managed by DBA's
Change directory to the owl/owl-postgres/bin directory like in the following
cd /opt/owl/owl-postgres/bin
Export the LIB directory where postgres is installed
export LD_LIBRARY_PATH=/opt/owl/owl-postgres/lib
We are ready to alter the Postgres Metastore for Owl. In order to do this we will need to location to the *.sql file that came with the tar ball (upgrade package) and the password for the owluser who installed postgres. While still in the /opt/owl/owl-postgres/bin directory we have to execute the below.
./psql -U owluser -d postgres -a -f /opt/owl/owl-postgres/bin/owl-postgres-alters20-21.sql
The command above will prompt for the postgres users password Password for user owluser: <ENTER PASSWORD>once that is complete you can validate the alter statements works by using postgres shell interactively. Example:
./psql -d postgres select * from public.dataset_scoring
but selecting a table that has changed in the alter commandsCopy off the old files in owl/bin .... first cd /opt/owl/bin/ COPY =
cp owl-agent-2.0.0.jar owlcheck owl-core-2.0.0-jar-with-dependencies.jar owlmanage.sh owl-webapp-2.0.0.jar /tmp/
REMOVE =rm owl-agent-2.0.0.jar owlcheck owl-core-2.0.0-jar-with-dependencies.jar owlmanage.sh owl-webapp-2.0.0.jar
Copy in new files from upgrade tar ball in step 1.
owlcheck
owlmanage.sh
owl-agent-2.2.1.jar
owl-core-2.2.1-jar-with-dependencies.jar
owl-webapp-2.2.1.jar
run
./owlmanage.sh start=owlweb
to start the owl-web application
Last updated