[ 
https://issues.apache.org/jira/browse/IMPALA-14581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050198#comment-18050198
 ] 

ASF subversion and git services commented on IMPALA-14581:
----------------------------------------------------------

Commit ee67ede314b25f789c9e14ce7fc7b00e6641fc0f in impala's branch 
refs/heads/master from ttttttz
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ee67ede31 ]

IMPALA-12349: Support Apache Hive 2.x in Impala

Like IMPALA-10871, this patch adds MetastoreShim to support Apache
Hive 2.x. At the build time, based on the environment variable
IMPALA_HIVE_DIST_TYPE one of the three shims is added to as source
using the fe/pom.xml build plugin. And select the dependencies
related to Hive in the fe/pom.xml based on the environment variable
IMPALA_HIVE_MAJOR_VERSION. There are some duplicate classes under
compat-apache-hive2 directory, e.g. fe/src/compat-apache-hive-2/java/
org/apache/impala/catalog/events/MetastoreEvents.java duplicates
fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java
The class in compat-apache-hive2 is a simplified version that works
with Apache Hive 2.x. So we don't need to extract lots of Hive-dependent
codes in MetastoreEvents.java into the metastore shim. Due to this,
the build process simply remove the original source code when building
on Apache Hive 2. Additionally, it should be noted that all
the code in the fe/src/compat-apache-hive-2/java/org/apache/hadoop/hive
directory comes from Apache Hive 3.x, original
source: https://github.com/apache/hive/blob/branch-3.1
In order to reduce the unnecessary intrusion into the code, skip all
tests when building with Apache Hive 2.x. If wanting to build Impala
adapted to Apache Hive 2.x, please set the following environment variables
before `source bin/impala-config.sh`:
  export USE_APACHE_COMPONENTS=true
  export USE_APACHE_HIVE_2=true
TODO:
- IMPALA-14581: Support testing related to Apache Hive 2 in the minicluster.

Testing:
- Compile using the -package option to obtain the package. After
deployment, perform all types of query tests, including SELECT, INSERT,
CREATE TABLE, ALTER TABLE, COMPUTE STATUS, etc. In addition, comprehensive
testing has been conducted on the metadata auto-synchronization functionality.
The tests confirm that all event types are supported except for 
AlterDatabaseEvent,
AllocWriteIdEvent, AbortTxnEvent, PseudoAbortTxnEvent, and 
CommitCompactionEvent.
It is worth noting that these unsupported events are not generated in Apache 
Hive 2,
so their lack of processing support does not impact the functionality.

Change-Id: Ib5f104dc8d131835b8118b9d54077471db65681c
Reviewed-on: http://gerrit.cloudera.org:8080/21760
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Support testing related to Apache Hive 2 in the minicluster.
> ------------------------------------------------------------
>
>                 Key: IMPALA-14581
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14581
>             Project: IMPALA
>          Issue Type: Improvement
>    Affects Versions: Impala 4.5.0
>            Reporter: Zhi Tang
>            Priority: Major
>
> In IMPALA-12349, the support of Impala for Apache Hive 2 was implemented. 
> However, it is not yet supported to conduct relevant tests in the minicluster.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to