Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Reduce size of utilities bundled jar #538
base: main
Are you sure you want to change the base?
Reduce size of utilities bundled jar #538
Changes from 4 commits
d11406a
1c80e84
2bb64d5
2e1f7d0
33e32b4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excluding servlet and antlr-runtime dependencies, since they're not being used in utilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which dependency are these servlet and antlr coming from ? These are not Apache 2.0 compliant actually. Can you check if the ones marked in yellow for xtable-utilities can be removed ?
https://docs.google.com/spreadsheets/d/1XBCZBeWqF2D5d1L4H9fRQ1QLarJq4tLgIEgnGiNdoV8/edit?usp=sharing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
servlet jars are coming from multiple dependencies like hudi-common, and hbase-server as shown below. Antlr is coming from delta-core
[INFO] +- org.apache.xtable:xtable-core:jar:0.2.0-SNAPSHOT:compile
[INFO] | +- org.apache.hudi:hudi-java-client:jar:0.14.0:compile
[INFO] | | - org.apache.hudi:hudi-client-common:jar:0.14.0:compile
[INFO] | | +- org.apache.hudi:hudi-timeline-service:jar:0.14.0:compile
[INFO] | | | +- io.javalin:javalin:jar:4.6.7:compile
[INFO] | | | | +- org.eclipse.jetty:jetty-server:jar:9.4.54.v20240208:compile
[INFO] | | | | | +- org.eclipse.jetty:jetty-http:jar:9.4.54.v20240208:compile
[INFO] | | | | | - org.eclipse.jetty:jetty-io:jar:9.4.54.v20240208:compile
[INFO] | | | | +- org.eclipse.jetty:jetty-webapp:jar:9.4.54.v20240208:compile
[INFO] | | | | | +- org.eclipse.jetty:jetty-xml:jar:9.4.54.v20240208:compile
[INFO] | | | | | - org.eclipse.jetty:jetty-servlet:jar:9.4.54.v20240208:compile
[INFO] | | | | | - org.eclipse.jetty:jetty-security:jar:9.4.54.v20240208:compile
[INFO] | | | | +- org.eclipse.jetty.websocket:websocket-server:jar:9.4.54.v20240208:compile
[INFO] | | | | | +- org.eclipse.jetty.websocket:websocket-common:jar:9.4.54.v20240208:compile
[INFO] | | | | | | - org.eclipse.jetty.websocket:websocket-api:jar:9.4.54.v20240208:compile
[INFO] | | | | | +- org.eclipse.jetty.websocket:websocket-client:jar:9.4.54.v20240208:compile
[INFO] | | | | | | - org.eclipse.jetty:jetty-client:jar:9.4.54.v20240208:compile
[INFO] | | | | | - org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.54.v20240208:compile
] +- org.apache.xtable:xtable-core:jar:0.2.0-SNAPSHOT:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.17.1:compile
[INFO] | +- org.apache.hudi:hudi-common:jar:0.14.0:compile
[INFO] | | +- org.apache.hbase:hbase-server:jar:2.4.9:compile
[INFO] | | | +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
[INFO] +- org.apache.xtable:xtable-core:jar:0.2.0-SNAPSHOT:compile
[INFO] | +- org.apache.xtable:xtable-hudi-support-utils:jar:0.2.0-SNAPSHOT:compile
[INFO] | - io.delta:delta-core_2.12:jar:2.4.0:compile
[INFO] | +- io.delta:delta-storage:jar:2.4.0:compile
[INFO] | - org.antlr:antlr4-runtime:jar:4.9.3:compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see below dependencies are present in the current dependency tree for utilties module that are marked yellow in the sheet. Will try to remove them
jersey-json
jersey-core
jersey-server
jersey-servlet
jaxb-impl
javax.activation-api
javax.annotation-api
javax.servlet.jsp-api
javax.servlet-api
javax.ws.rs-api
jsr311-api
jaxb-api
javax.servlet.jsp
javax.el
jol-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xtable sync is failing on removing below non-complainr dependencies
jersey-server
jol-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing these dependencies after running
mvn dependency:analyze
is returning these jars are unused dependencies in the utilities module.[WARNING] Unused declared dependencies found:
[WARNING] org.apache.logging.log4j:log4j-core:jar:2.22.0:compile
[WARNING] org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.22.0:compile
[WARNING] org.apache.spark:spark-core_2.12:jar:3.4.2:runtime
[WARNING] org.apache.spark:spark-sql_2.12:jar:3.4.2:runtime
[WARNING] org.apache.parquet:parquet-avro:jar:1.12.2:compile
[WARNING] org.apache.hadoop:hadoop-aws:jar:3.3.6:runtime
[WARNING] com.amazonaws:aws-java-sdk-bundle:jar:1.12.328:runtime
[WARNING] org.apache.hadoop:hadoop-azure:jar:3.3.6:runtime
[WARNING] com.google.cloud.bigdataoss:gcs-connector:jar:hadoop3-2.2.22:runtime
[WARNING] org.junit.jupiter:junit-jupiter-engine:jar:5.9.0:test
[WARNING] org.projectlombok:lombok:jar:1.18.30:provided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing these for the same reason as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without these jars, user won't be able to run the xtable jar sync for s3 or gcs paths ?