Caveat with ARCo Reporting Module Installation on Red Hat Enterprise Linux

In a nut shell, if you are installing the Sun Grid Engine ARCo Reporting module on Red Hat Enterprise Linux 5 platforms, use the following set up for a successful installation.

# setenv JAVA_HOME /path/java/home/directory  (For the Java version 1.5 or later) 
# setenv PATH /path/java/home/directory/bin:/opt/sun/webconsole/bin:${PATH}


# rm -fr $SGE_ROOT/$SGE_CELL/arco/reporting (only if you failed to install it earlier)


# cd $SGE_ROOT/reporting
# ./inst_reporting

Software components tested:

\* SGE 6.2 software and its ARCo package (especially the reporting module) for RHEL 5
\* Sun Java Web Console 3.0.2 package
\* Java 1.5 (included in the Sun Java Web Console 3.0.2 package)


If you want to know more about the details, please continue to read. The following issues were encountered when installing the ARCo reporting module on a RHEL machine.

Issue 1:

After installing Sun Java WebConsole (JWC) 3.0.x RPM packages from SGE 6.2 software distribution, the following issue was happened when installing the ARCo reporting module first time.

Welcome to the SGE ARCo reporting module installation
-----------------------------------------------------
The installation will take approximately 5 minutes

Hit <RETURN> to continue >>

smwebapp: command not found. Make sure that the smwebapp is on your PATH.


When the Sun Java Web Console (JWC) RPM package was intalled, the following symbolic links for some of JWC commands were created.

# ls -l /usr/sbin | grep webconsole
lrwxrwxrwx 1 root bin        41 Feb 21 20:36 smcwebserver -> ../../opt/sun/webconsole/bin/smcwebserver
lrwxrwxrwx 1 root bin        34 Feb 21 20:36 smreg -> ../../opt/sun/webconsole/bin/smreg
lrwxrwxrwx 1 root bin        36 Feb 21 20:36 wcadmin -> ../../opt/sun/webconsole/bin/wcadmin

Without carefully reading the above suggestion, I created a symbolic link for smwebapp under the /usr/sbin directory instead of setting the PATH properly.  This caused another interesting but serious issue later.

The JWC binaries are installed on /opt/sun/webconsole/bin directory. So the proper setting for PATH would be, if you are using the bash shell,

# export PATH=/opt/sun/webconsole/bin:${PATH}


Issue 2:

If you did not set the PATH properly for the smwebapp application and created a symbolic link for the smwebapp under /usr/sbin directory as discussed above, you will run into the following issue.  Actually there are two issues. One the smwebapp failure and the other is missing Java although the Java home directory was asked in the beginning of the reporting module installation.

Importing Sun Java Web Console 3.0 files
----------------------------------------
/usr/sbin/smwebapp: line 56: /usr/java/bin/java: No such file or directory

Command failed: /usr/sbin/smwebapp import -j /opt/sge/6.2/default/arco/reporting

Probably a permission problem. Please check file access permissions.
Check read/write permission. Check if SGE daemons are running.

FAILED

/usr/sbin/smwebapp: line 56: /usr/java/bin/java: No such file or directory

Command failed: /usr/sbin/smwebapp prodname -t all -d /opt/sge/6.2/default/arco/reporting

Probably a permission problem. Please check file access permissions.
Check read/write permission. Check if SGE daemons are running.

FAILED

The Java issue can be easily resolved by setting up the following environment variables:

# export JAVA_HOME=/usr/java/default
# export PATH=/usr/java/default/bin:${PATH}

The Java 1.5, which was installed during the JWC installation, was installed at the /usr/java/jdk1.5.0_04 directory. But I have created a symbolic link, default, for easy of use. So I used /usr/java/default as JAVA_HOME.

# ls -l /usr/java
...
lrwxrwxrwx 1 root root   21 Feb 21 22:46 default -> /usr/java/jdk1.5.0_04
drwxr-xr-x 9 root root 4096 Feb 21 20:35 jdk1.5.0_04

The smwebapp failure is an interesting issue because its error message does not indicate the actuall problem. The actual problem is shown below:


If the smwebapp command was manually executed using the symbolic link, the following exception happened:

# /usr/sbin/smwebapp prodname -t all -d /opt/sge/6.2/default/arco/reporting
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/web/util/WebappCliDriver


However, if the absolute path to the original binary was used, it worked fine without any exceptions.

# /opt/sun/webconsole/bin/smwebapp import -j /opt/sge/6.2/default/arco/reporting
# /opt/sun/webconsole/bin/smwebapp prodname -t all -d /opt/sge/6.2/default/arco/reporting

Because of this exception, the ARCo reporting module was not successfully installed. However, the installation continued to complete to the end.  But, if you access the ARCo reporting module using a web browser, you will get the following message:


No application is registered with this Sun Java(TM) Web Console, or you have no rights to use any applications that are registered. See your system administrator for assistance.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Chansup Byun

Search

Categories
Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today