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

Qiheng He edited comment on HIVE-28559 at 10/13/24 3:17 AM:
------------------------------------------------------------

- [~zhangbutao] Thanks for your answer. I reviewed 
[https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ] and I was 
able to run the unit test with the following command.

{code:bash}
sdk install java 8.0.422-tem
sdk install maven

git clone g...@github.com:apache/hive.git
cd ./hive/
git reset --hard a64a4f64532403cce9fec89d6a0ff0db0a655918
sdk use java 8.0.422-tem

mvn clean install -DskipTests -Pitests
mvn test -Dtest=TestHBaseCliDriver -Dtest.output.overwrite=true -pl 
itests/qtest -Pitests

mvn clean install -DskipTests
mvn test -Dtest=TestRemoteHiveMetastoreWithHttpJwt -pl 
standalone-metastore/metastore-server
{code}
 - This issue can be closed. To be honest, I don't know how to close a JIRA 
issue like GitHub.


was (Author: JIRAUSER299555):
- [~zhangbutao] Thanks for your answer. I reviewed 
[https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ] and I was 
able to run the unit test with the following command.

{code:bash}
sdk install java 8.0.422-tem
sdk install maven

git clone g...@github.com:apache/hive.git
cd ./hive/
git reset --hard a64a4f64532403cce9fec89d6a0ff0db0a655918
sdk use java 8.0.422-tem

mvn clean install -DskipTests -Pitests
mvn test -Dtest=TestHBaseCliDriver -Dtest.output.overwrite=true -pl 
itests/qtest -Pitests

mvn clean install -DskipTests
mvn test -Dtest=TestRemoteHiveMetastoreWithHttpJwt -pl 
standalone-metastore/metastore-server
{code}
 - The current issue can be closed.

> Unable to start unit tests for `TestRemoteHiveMetastoreWithHttpJwt` and 
> `TestHBaseCliDriver`
> --------------------------------------------------------------------------------------------
>
>                 Key: HIVE-28559
>                 URL: https://issues.apache.org/jira/browse/HIVE-28559
>             Project: Hive
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>            Reporter: Qiheng He
>            Priority: Major
>
> - Unable to start unit tests for 
> {*}org.apache.hadoop.hive.metastore.TestRemoteHiveMetastoreWithHttpJwt{*}. 
> This finding comes from [https://github.com/apache/hive/pull/5481] and also 
> applies to the master branch.
> {code:java}
> git clone g...@github.com:apache/hive.git
> cd ./hive/
> git reset --hard ff95fcd1459e375139447063c76f43200f935d38
> sdk install java 8.0.422-tem
> sdk use java 8.0.422-tem
> sdk install maven
> mvn clean install -DskipTests
> mvn test -Dtest=TestRemoteHiveMetastoreWithHttpJwt
> {code}
> - The error log is as follows.
> {code:bash}
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  02:19 min
> [INFO] Finished at: 2024-10-05T22:36:15+08:00
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 667 goals, 657 executed, 10 from cache, saving at least 4s
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack (unpack) on 
> project hive-iceberg-handler: Artifact has not been packaged yet. When used 
> on reactor artifact, unpack should be executed after packaging: see MDEP-98. 
> -> [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/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <args> -rf :hive-iceberg-handler
> {code}
>  - *org.apache.hadoop.hive.cli.TestHBaseCliDriver* also fails to run.
> {code:java}
> git clone g...@github.com:apache/hive.git
> cd ./hive/
> git reset --hard ff95fcd1459e375139447063c76f43200f935d38
> sdk install java 8.0.422-tem
> sdk use java 8.0.422-tem
> sdk install maven
> mvn clean install -DskipTests
> mvn test -Dtest=TestHBaseCliDriver
> {code}
> - The error log is as follows.
> {code:bash}
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  02:04 min
> [INFO] Finished at: 2024-10-05T22:44:00+08:00
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 667 goals, 657 executed, 10 from cache, saving at least 4s
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack (unpack) on 
> project hive-iceberg-handler: Artifact has not been packaged yet. When used 
> on reactor artifact, unpack should be executed after packaging: see MDEP-98. 
> -> [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/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <args> -rf :hive-iceberg-handler
> {code}
>  - I'm not sure what happened to the master branch, it doesn't seem like 
> something documented at 
> [https://cwiki.apache.org/confluence/display/Hive/HowToContribute] . Either 
> Hive's master branch can't be compiled with {*}JDK8{*}, or Hive's master 
> branch can't be compiled with {*}Maven 3.9.9{*}. And Hive hasn't used *Maven 
> Wrapper* to unify the environment for contributors yet.



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

Reply via email to