To complete prerequisites before installing/upgrading Moab Viewpoint for Moab HPC Suite 7.1.3
Viewpoint requires the Java Runtime Environment from Sun/Oracle version 6.0 or later (running java -version
should return a version number of 1.6.0.). Other implementations of the Java Runtime Environment, such as OpenJDK or GIJ, will not run on Viewpoint as expected.
Set the MaxPermSize higher if Moab Web Services and Viewpoint exist in the same Tomcat or to support actions such as running reports. To do so, locate the following line in the /etc/tomcat6/tomcat6.conf. If it is not already present, add it.
JAVA_OPTS="$CATALINA_OPTS -Xmx2g -XX:MaxPermSize=2g"
Change each instance of 2g to 4g.
JAVA_OPTS="$CATALINA_OPTS -Xmx4g -XX:MaxPermSize=4g"
If you receive a PermGen error while running Viewpoint, gradually increase both the MaxPermSize and Xmx equally (the Xmx should always be at least as much as MaxPermSize).
Also, update the JAVA_HOME line to point to the Java Runtime Environment you just installed. For example:
JAVA_HOME=/usr/java/jre1.6.0_35
MySQL and Oracle are currently the only supported databases for Viewpoint. However, the use of other databases with Viewpoint is possible. Please contact Adaptive Computing Support for more information.
To create the Viewpoint database, see Creating the Viewpoint database.
User, database, and schema created should all be named 'viewpoint'.
When you run commands and scripts in the database, you must do so in context. For instance, if you are running a script on a MySQL database, you would include 'viewpoint' before the path, as in the following example:
> mysql -u root -p viewpoint < /your/path/script.sql
For MySQL, the database/catalog name is viewpoint.
> sudo service tomcat6 stop
If you are running other applications in Tomcat, you may need to perform this step later in the process.
[root]# mkdir /opt/viewpoint
> tar -xzvf /tmp/downloads/viewpoint-7.1.3.tgz -C /opt/
> mv /opt/viewpoint-7.1.3 /opt/viewpoint
If you want to override the default configuration location of /opt/viewpoint, define the environment variable VIEWPOINT_HOME with a path such as /home/name/viewpoint.
The tarball is extracted into a new directory called viewpoint-7.1.3/. It contains the following directories and files that are important to Viewpoint 7.1.3 installation:
licenses/
setup.properties.oracle
> mysql -u root -p viewpoint < /tmp/viewpoint/sql/[dbType]/setup_hpc.sql
> cp mysql-connector-java-5.1.6-bin.jar /usr/share/tomcat6/lib
Related topics