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

Kokila N commented on HIVE-29543:
---------------------------------

*Compilation Error:*

 
{code:java}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.14.0:testCompile 
(default-testCompile) on project hive-standalone-metastore-server: Compilation 
failure
[ERROR] 
/Users/kokila/cdp/upstream/up_hive/hive/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/auth/oauth2/TestTokenIntrospectionAuthenticator.java:[90,27]
 cannot access jakarta.ws.rs.core.Response
[ERROR]   class file for jakarta.ws.rs.core.Response not found
{code}
*Cause: JAX-RS namespace issue*
 * Hadoop 3.5.0 uses Jersey 2 / {{{}javax.ws.rs.*{}}}. (javax namespace)
 * Keycloak 22+ migrated to Jakarta ({{{}jakarta.ws.rs.*{}}}).
 * Hive currently uses Keycloak version 
[26.0.6|https://github.com/apache/hive/blob/25d4a85d361cbd7ef9cbbd45f2f46b0369aafea9/standalone-metastore/pom.xml#L127]
  and so {{keycloak-admin-client}} (Jakarta) references {{jakarta.ws.rs}} 
causing compilation error.

*Solution:* 

Keycloak provides two Admin clients:
 * {{keycloak-admin-client}} (Jakarta EE)
 * {{keycloak-admin-client-jee}} (Java EE, javax compatible) which we require

The last supported Java EE version is 25.0.6. Downgrading to 
{{keycloak-admin-client-jee}} resolves this issue. I have tested this locally 
and this particular issue is resolved in compile time.

[~okumin]  do you have any inputs on downgrading keycloak ?  

Original PR ref: [https://github.com/apache/hive/pull/6086] 

 

 

> Upgrade Hadoop to 3.5.0
> -----------------------
>
>                 Key: HIVE-29543
>                 URL: https://issues.apache.org/jira/browse/HIVE-29543
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ayush Saxena
>            Assignee: Kokila N
>            Priority: Major
>
> Hadoop 3.5.0 is released: 
> https://lists.apache.org/thread/7dtnbdqrgt30oszd1w1vo7k68z0n7r4b
> We should upgrade to allow JDK-25 runtime capabilities 



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

Reply via email to