Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 12 commits into from

Conversation

nblagodarnyi
Copy link

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.

@sercanCyberVision
Copy link
Contributor

sercanCyberVision commented May 3, 2024

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
#252

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

@nblagodarnyi
Copy link
Author

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

@FerArribas14
Copy link

@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

@nblagodarnyi
Copy link
Author

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.

@FerArribas14
Copy link

FerArribas14 commented Jun 25, 2024

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,

@mneethiraj
Copy link
Contributor

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

@mneethiraj mneethiraj closed this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants