Fang-Yu Rao has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24692 )

Change subject: IMPALA-15262: Update to CDP build with HIVE-26537 and HIVE-27193
......................................................................


Patch Set 10:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/24692/10/fe/src/test/java/org/apache/impala/authorization/AuthorizationTestBase.java
File 
fe/src/test/java/org/apache/impala/authorization/AuthorizationTestBase.java:

http://gerrit.cloudera.org:8080/#/c/24692/10/fe/src/test/java/org/apache/impala/authorization/AuthorizationTestBase.java@624
PS10, Line 624: .request(MediaType.APPLICATION_JSON)
At https://jenkins.impala.io/job/all-build-options-ub2004/4702/consoleFull, the 
compilation of Impala failed when we attempted to compile Impala with Apache 
Ranger.

 09:48:27 16:48:25 [INFO] Apache Impala Query Engine Frontend 5.0.0-SNAPSHOT . 
FAILURE [ 23.508 s]
 09:48:27 16:48:25 [INFO] BUILD FAILURE
 09:48:27 16:48:25 [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.14.0:testCompile (default- 
testCompile) on project impala-frontend: Compilation failure: Compilation 
failure:
09:48:27 16:48:25 [ERROR] 
/home/ubuntu/Impala/fe/src/test/java/org/apache/impala/authorization/AuthorizationTestBase.java:[624,9]
 cannot find symbol
 09:48:27 16:48:25 [ERROR]   symbol:   method request(java.lang.String)
 09:48:27 16:48:25 [ERROR]   location: class 
com.sun.jersey.api.client.WebResource

This may have something to do with the newly introduced Response class. The 
following was provided by Cursor (Composer 2.5).

API comparison (verified via javap)

Apache Ranger 2.8.0 (org.apache.ranger:ranger-plugins-common:2.8.0):

 public com.sun.jersey.api.client.WebResource getResource(String);
 public com.sun.jersey.api.client.ClientResponse post(String, Map, Object);
 public com.sun.jersey.api.client.ClientResponse delete(String, Map);
 // Response body: ClientResponse.getEntity(String.class)

CDP Ranger 2.8.0.7.3.2.20000-210:

 public javax.ws.rs.client.WebTarget getResource(String);
 public javax.ws.rs.core.Response post(String, Map, Object);
 public javax.ws.rs.core.Response delete(String, Map);
 // Response body: Response.readEntity(String.class)

The broken code chained through getResource() and assumed Jersey 2.x types. 
Under Apache components, getResource() returns WebResource, which has no 
request() method, and the declared javax.ws.rs.core.Response type does not 
expose JAX-RS 2.x methods at compile time.

I will work on fix this too.



--
To view, visit http://gerrit.cloudera.org:8080/24692
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I55006e497d7ba25217794bf797cfe975050a0d25
Gerrit-Change-Number: 24692
Gerrit-PatchSet: 10
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Comment-Date: Fri, 21 Aug 2026 22:59:49 +0000
Gerrit-HasComments: Yes

Reply via email to