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

Stamatis Zampetakis commented on HIVE-26812:
--------------------------------------------

I have the impression that this build problem is caused by HIVE-25750. 

The util module has a dependency to hive-beeline and the latter depends on 
hive-jdbc.

Normally the hive-jdbc should be available in util module (either transitively 
either via the shading beeline jar). 

Due to shading a dependecy-reduced.xml file is installed in the local maven 
repo (~/.m2/repository/org/apache/hive/hive-beeline/4.0.0-SNAPSHOT/) for 
beeline which indicates that the jar doesn't have any transitive dependencies. 
If we were publishing the shaded jar that would be true but we publish the 
regular jar.

At this point every project/module which includes hive-beeline as a maven 
dependency is broken.

For the time being we can include explicitly hive-jdbc in utils module to 
overcome this failure but the real problem is in beeline.

> hive-it-util module misses a dependency on hive-jdbc
> ----------------------------------------------------
>
>                 Key: HIVE-26812
>                 URL: https://issues.apache.org/jira/browse/HIVE-26812
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.0.0-alpha-2
>            Reporter: Alessandro Solimando
>            Assignee: Alessandro Solimando
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building from $hive/itests fails as follows:
> {noformat}
> [INFO] Hive Integration - Testing Utilities ............... FAILURE [  6.492 
> s]
> ...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  56.499 s
> [INFO] Finished at: 2022-12-06T19:24:16+01:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hive-it-util: Compilation failure
> [ERROR] 
> /Users/asolimando/git/hive/itests/util/src/main/java/org/apache/hive/jdbc/miniHS2/MiniHS2.java:[51,28]
>  cannot find symbol
> [ERROR]   symbol:   class Utils
> [ERROR]   location: package org.apache.hive.jdbc
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <args> -rf :hive-it-util{noformat}
> Surprisingly, building from the top directory with -Pitests does not fail.
> There is a missing dependency on the hive-jdbc module, when adding that, the 
> error gets fixed.



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

Reply via email to