ranger icon indicating copy to clipboard operation
ranger copied to clipboard

RANGER-3409: remove org.codehaus.jackson ver 1.9 / add com.fasterxml.jackson ver 2.17

Open nblagodarnyi opened this issue 1 year ago • 5 comments

What changes were proposed in this pull request?

According to https://issues.apache.org/jira/browse/RANGER-3409 all appearances of old org.codehaus.jackson dependencies (ver.1.9.13) were replaced by corresponding new versions from com.fasterxml.jackson.

How was this patch tested?

  • Locally tested with existing unit/intergration tests in project with different Hadoop versions.
export JAVA_HOME=/path/to/java11;
mvn clean package -Dhadoop.version=3.3.6;  # with latest stable release
mvn clean package; # with default Hadoop version
  • In physical test environment where Hadoop 3.3.6 / Hive 4 are installed on Ubutnu 20.

nblagodarnyi avatar May 03 '24 12:05 nblagodarnyi

I have build your branch with Docker option and checked the UI, I see below error in multiple endpoints: image

For example: http://[host:port]/index.html#/users/usertab http://[host:port]/index.html#/reports/audit/admin

I have seen jackson related serialization issues before which affect UI, you can see the details here: https://issues.apache.org/jira/browse/RANGER-4225 https://github.com/apache/ranger/pull/252

Could you please check the UI in your end just to make sure?

sercanCyberVision avatar May 03 '24 16:05 sercanCyberVision

Hello Sercan! Thanks for your reply. I didn't manage to reproduce your issue with UI. I used this command to rebuild ranger from my branch and everything works fine in Docker. export RANGER_REBUILD=1 && export DOCKER_MAVEN_BUILD=0 && ./ranger_in_docker up

image image image

nblagodarnyi avatar May 06 '24 13:05 nblagodarnyi

@nblagodarnyi you are using hadoop 3.3.0. can you rebuild with hadoop version 3.3.6?

Screenshot at Jun 24 15-41-27

I have the same error as @sercanCyberVision

FerArribas14 avatar Jun 24 '24 13:06 FerArribas14

Hello @FerArribas14! Please refer to the PR description. I've been building/testing it with different Hadoop versions, including 3.3.6. Version built against 3.3.6 now works in our production environment.

nblagodarnyi avatar Jun 24 '24 13:06 nblagodarnyi

Hello @nblagodarnyi,

I have built it with hadoop 3.3.6, java 11 on ubuntu 22.04 and 24.04 with maven profile jdk11 and java9andup from your branch and it still gives me the same failure. I have the same error as @sercanCyberVision . However, with hadoop 3.3.0 it works.

Error

Error2

Are you sure that in the previous comment (export RANGER_REBUILD=1 && export DOCKER_MAVEN_BUILD=0 && ./ranger_in_docker up) you have built with hadoop 3.3.6?

Could you pass me the ranger-admin-{VERSION}.tar.gz? Generated with:

export JAVA_HOME=/path/to/java11; mvn clean package -Dhadoop.version=3.3.6;

Thanks,

FerArribas14 avatar Jun 25 '24 08:06 FerArribas14

Thank you for the PR. Please note that updates to replace org.codehaus.jackson with com.fasterxml.jackson was merged in RANGER-4225.

mneethiraj avatar Jul 18 '24 23:07 mneethiraj