TMUDF C++ compiler interface, part of log-reading TMUDF

This is the infrastructure for a new C++ interface for TMUDFs
(table-mapping UDFs). It is used by a new log-reading TMUDF that
is not yet complete, but should be finished in the next few days.

See blueprint cmp-tmudf-compile-time-interface for more info.

Change-Id: I5a74e461462313b6d9722ac0deb21cd16c4b02ce
SHOWPLAN related changes

Reworked the fix for bug 1392522 - mxosrvr core dumped doing showplan
(with N.E. enabled), plus other related code changes.
1) The native code (also known as native expression), if generated, is
stored in the expression's constant area. SHOWPLAN will dump the native
code in the assembly format. The display can be disabled by CQD
PCODE_NE_IN_SHOWPLAN to "OFF". It is "ON" by default. This part had been
reviewed by Jim Capps and Mike Hanlon.
2) Add several SHOWPLAN statements in core/TEST019 without logging the
output. This is to ensure no core generated when getting executor
operator (TDBs) info via SHOWPLAN.
3) A temporary fix to ComTdbHbaseAccess::displayRowId(). The current way
of retrieving begin or end row IDs from the HbaseScanRows for SHOWPLAN
does not match with the way those row IDs are generated (see
HbaseAccess::genListsOfRows), causing core dumps in some cases.

Change-Id: Id33e8c854452c03e15c4bd21f668f123180d9471
Fix for bug 1400963

 OEW test with T2 multithread cored at NAList<CollationDB*>::removeCounted

User collation code had static member variable that was cauing this issue.
User collation feature is not supported and hence removed part of this featu
and reworked the rest to make it thread safe.

Change-Id: I4aec79ace3e331692549809cee81502a9102993d
Fix node down processing and stale branch

Change-Id: Idb4e8df05c99a349118942725fefac70a8e1a318
Give warning, not error, when Hadoop not found

When Trafodion has just been untarred from a product file obtained from
downloads.trafodion.org, and no Hadoop is found, give a warning instead of
an error and suggest that install_local_hadoop may be needed.

In that situation, do not put 4 colons at front of CLASSPATH.

Change-Id: If207b5999df37d3139015ff88bc4bde4686f7919
Changes to first review comments from Ruo-Yu

Fix merge issues.

Initialized new data members of connection handle class and return error
when dialogueID is null.

Merging multi thread T2 driver changes to mainline

1) Fix global variables for multi thread env
2) Fix static variables for milti thread env
3) Fix non thread safe standard C function calls with thread safe calls.

commit 7780a77f0cf3e5c2d3991b07f026b2a1f223bc7e
Merge: b7aa077 1bfe9c6
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Thu Dec 4 19:42:42 2014 +0000

    Merge remote branch 'opensrc/master'

commit b7aa077886c9ada2bf13b6b8a0982e1c95d64ade
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Tue Nov 25 20:28:38 2014 +0000

    Fix for bug #1355559

commit 439323d4d44cc45a01fbdb0febbfbb69b81b5dc1
Merge: 7dec9da d63d6ce
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Fri Nov 21 20:30:46 2014 +0000

    Merge remote branch 'opensrc/master'

commit 7dec9da566aaaefd1fe84cd32060c91141511493
Author: RuoYu Zuo <ruo-yu.zuo@hp.com>
Date:   Wed Nov 19 06:42:02 2014 +0000

    T2 global variables changes

commit e827950309bcc9a430e98d1d846b2bb74f86f4bd
Merge: 832f2e2 37053c0
Author: Pavani Puppala <pavani.puppala@hp.com>
Date:   Fri Nov 14 01:01:04 2014 +0000

    Merge remote branch 'opensrc/master'

commit 832f2e25f48768262f713b63727b7e0b91808d35
Author: xuk <kai-hua.xu@hp.com>
Date:   Fri Nov 7 09:01:11 2014 +0000

    Make Spjrs_ and Spjrsval_ local variables

commit 5f3c1102643e929d20ffb77e638d52cc7509bdb2
Author: xuk <kai-hua.xu@hp.com>
Date:   Wed Nov 5 00:59:28 2014 +0000

    T2 thread safe java part changes

commit db923630ccb406eff4ccff65562b35b4d92e488b
Author: Daniel Lu <ping.lu@hp.com>
Date:   Fri Oct 17 07:46:33 2014 +0000

    replace c std call with thread safety version.

Change-Id: Ibab8f9b40b61c5ddc4c285ecb34e4c984881b128
Changes to delay region split if txn present

Region splits will be delayed until no more transactions
are in the active or pending list of the region.  Split work
is being checked-in separately from the balance changes.

Change-Id: I800b06711d14f019d7f1a23d1c3d123e7aa805ff
Merge "TMUDF C++ compiler interface, part of log-reading TMUDF"
Add support for DCS and phoenix_tests to local_hadoop

By default it gets the latest DCS from github, but env variables
can be used to over-ride and get DCS from another URL or local
workspace.

Includes a convenience script to run phoenix tests. Phoenix tests
only works with T4 driver in local_hadoop environment so far.

Change-Id: I2574ab637bd7db23b42e4d7eb67afc9ad27c7bb6
Fixes and removal of obsolete code.

-- LP 1400556 'get tables in schema' is not supported on external
    hbase tables. An error  is now returned.
-- LP 1400553  Insert into external hbase tables in _ROW_ format must use
   column_create function and VALUES clause to create rows.
   An error is returned otherwise.
-- a bug with that prevented a boundary case when sequence increment value
   was one less than largeint max has been fixed.
-- error message to indicate what options can be used during alter sequence
   has been updated
-- create table as select  stmt now returns an error if running within a user
   transaction. This is the same behavior as other DDL operations.
   This will be
   removed once we have transaction support for DDL stmts.
-- create table as select now uses non-transactional 'upsert using load' to
   populate target table instead of transactional 'insert...select' stmt.
-- hive/test020 has been enabled. This tests for access to ORC files.
-- obsolete sidetree insert and NVT user load code has been removed.

Change-Id: I14d321deaa52321777acd1d8ca55420f1e973367
Merge "Give warning, not error, when Hadoop not found"
Merge "Changes to delay region split if txn present"
Merge "Fix for bug 1400963"
Lookup object UID for Sequence generator

The NATable object representing a Sequence generator sometimes has
an object UID of 0 at the time privileges are checked, resulting
in failure to locate the object and denial of access. This change
looks up the UID if the corresponding NATable member variable is 0.

Change-Id: I889d2d823b8c0faca5318572250b45e07134b6cf
Merge "Changes to first review comments from Ruo-Yu"
Merge "Lookup object UID for Sequence generator"
Merge "Fixes and removal of obsolete code."
Merge "Add support for DCS and phoenix_tests to local_hadoop"
Improved error handling during transaction hasConflict checking

Change-Id: I990460d321bfd89c71cdfd76783b2b6c0768dbf0
Possible fix for RS crash

Turning off block cache for regular full table scan and the coprocessor
count operation. This avoid these operations to add new block cache entries
in RS and evict the useful entries.

Ed atomic Testing has shown improvments in java memory usage in RS and in
throughput for large table full scans.

Change-Id: Ief1b9bb60c500100d3e63650b13cebfd99c2d041