sqenv problem when using downloaded product and install_local_hadoop

Bug #1401191 reported by Chris Sheedy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Committed
Low
Chris Sheedy

Bug Description

Trafodion can be tested this way on a system where Hadoop is not installed:

1. Download a file from downloads.trafodion.org, e.g., file trafodion_debug-20141210_0830.tar.gz
2. Unpack the downloaded file to extract Trafodion core product tar file
3. Install Trafodion by unpacking its tar file in an empty directory:
    tar -xzf trafodion_server-0.9.1.tgz
4. Set the Trafodion environment:
    source ./sqenv.sh
5. Install Hadoop within the current directory using the supplied script:
    sql/scripts/install_local_hadoop
6. Run tests

The sqenv.sh file needs to be invoked first because install_local_hadoop needs the environment variable $MY_SQROOT. The problem is that sqenv.sh does not recognize it is working with the installed product, and reports an error:

$ . ./sqenv.sh
ERROR: Did not find supported Hadoop distribution
$

This seems to be a harmless error, since install_local_hadoop and running tests apparently run normally. Perhaps “WARNING” is more appropriate.

This was encountered running the SQL developer regression tests on shared developer systems where Hadoop is not installed as root, i.e., developers have local copies of Hadoop.

Changed in trafodion:
importance: Undecided → Low
tags: added: dev-environment
Revision history for this message
Chris Sheedy (chris-sheedy) wrote :

After step 4 in this scenario, CLASSPATH statrs with 4 colons because variables from the not-yet-done Hadoop installation are empty but used in setting CLASSPATH, e.g.,

$ echo $CLASSPATH | cut -c1-22
::::/opt/home/csheedy/

Changed in trafodion:
assignee: nobody → Chris Sheedy (chris-sheedy)
status: New → In Progress
Changed in trafodion:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.