IMPALA-5184: build fe against both Hive 1 & 2 APIs
This adds a compatibility shim layer with Hive 1 and Hive 2
implementations. The version-specific code lives in
The shim adds wrapper methods to handle differing method signatures
and and config variables that changed slightly.
Some thrift classes were also moved from the 'cli' to 'rpc' package.
We work around these by implementing subclasses with the same name
in a different package for compatibility or by implementing shim
methods that operate on the classes. We also need to change the
package in the TCLIService.thrift, which is done with a
Also avoid the sticky config variable problem with some of the source
paths by requiring an _OVERRIDE suffix on the variable to override it
from the environment.
Made sure that I could build Impala on master as normal, and also
with the following config overrides in bin/impala-config-local.sh:
I manually assembled the dependencies by copying the following files
from the Hive 2 source and from a Hadoop 3 build:
Reviewed-by: Tim Armstrong <firstname.lastname@example.org>
Tested-by: Impala Public Jenkins