You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "LiuQhahah (via GitHub)" <gi...@apache.org> on 2024/08/15 20:56:13 UTC
[PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
LiuQhahah opened a new pull request, #4547:
URL: https://github.com/apache/gravitino/pull/4547
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
remove some unnecessary dependencies
### Why are the changes needed?
reduce catalog-lakehouse-paimon libs
Fix: #4545
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1719422941
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,9 +30,15 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
Review Comment:
+ 1
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,9 +30,15 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
Review Comment:
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2368436571
> Why the paimon format jar is so big, is it correct?
Paimon format jar packages the dependences in the jar, @caican00 do you know any other alternative jars?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2372857636
> > > Why the paimon format jar is so big, is it correct?
> >
> >
> > Paimon format jar packages the dependences in the jar, @caican00 do you know any other alternative jars?
>
> @caican00 any thoughts on this?
let me check it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2350570847
@LiuQhahah @caican00 is there any block on this, can we move forward this PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2320178885

@LiuQhahah we can also exclude these dependencies now.
for hive related, we can add them when supporting hive backend catalog
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2361007186
@LiuQhahah can you please list all the jars and paste here on Github for Paimon catalog? You can use `./gradlew compileDistribution` to get a distribution, then check the paimon catalog dir to list all the jars.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2368350194
Why the paimon format jar is so big, is it correct?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1749774057
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,36 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
- }
- implementation(libs.hadoop2.hdfs) {
Review Comment:
and could you please do a basic test locally? such as built successfully and ran through the unit tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2327187454
@caican00 can you please help on this, to make this move fast.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2328142701
> @caican00 can you please help on this, to make this move fast.
okay.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1719204451
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,9 +30,15 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
Review Comment:
why removed `common` module?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1749770267
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,36 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
- }
- implementation(libs.hadoop2.hdfs) {
Review Comment:
@LiuQhahah gravitino paimon catalog supports FilesystemCatalog as its backend catalog, and it depend on the hdfs dependency.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2370968832
> > Why the paimon format jar is so big, is it correct?
>
> Paimon format jar packages the dependences in the jar, @caican00 do you know any other alternative jars?
@caican00 any thoughts on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2372754832
> > Also, why do we need hdfs jar? I assume the hdfs client jar should be enough.
>
> Kerberos relies on the default HDFS configuration, removing hdfs jar may cause Kerberos operation failed, cc @yuqi1129
Yeah, it will make Paimon Kerberos-related tests fail. Let's leave it as is now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "LiuQhahah (via GitHub)" <gi...@apache.org>.
LiuQhahah commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2336714442
> > reduce catalog-lakehouse-paimon libs size from 222MB to 156MB
>
> @LiuQhahah could you please update the pr title for the real lib size?
Ok
The final size is 74M
```
$ du -sh .
74M .
~/workspace/gravitino/distribution/package/catalogs/lakehouse-paimon/libs on #4545-Shrink-Paimon-catalog-binary-package-size! ⌚ 22:48:21
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1764990091
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,40 +30,55 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
implementation(libs.hadoop2.hdfs) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
- implementation(libs.hadoop2.mapreduce.client.core) {
Review Comment:
Hi @LiuQhahah do you have time to fix this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2368444449
> Also, why do we need hdfs jar? I assume the hdfs client jar should be enough.
Kerberos relies on the default HDFS configuration, removing hdfs jar may cause Kerberos operation failed, cc @yuqi1129
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1760057997
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,40 +30,55 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
implementation(libs.hadoop2.hdfs) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
- implementation(libs.hadoop2.mapreduce.client.core) {
Review Comment:
@LiuQhahah It is necessary for spark IT, please roll it back. and then please update the pr title.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2360013307
Hi @FANNG1 It seems the pipeline encountered unexpected problem, can you help to re-trigger it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2367287558
@FANNG1 would you please help to review this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2336581081
> reduce catalog-lakehouse-paimon libs size from 222MB to 156MB
@LiuQhahah could you please update the pr title for the real lib size?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1743277381
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,37 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.apache.hadoop")
Review Comment:
you can only exclude hadoop yarn dependencies
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1760057997
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,40 +30,55 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
implementation(libs.hadoop2.hdfs) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.mortbay.jetty")
}
- implementation(libs.hadoop2.mapreduce.client.core) {
Review Comment:
It is necessary for spark IT, please roll it back.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2367882298
Hi, @LiuQhahah , I did some extra work to exclude `yarn` `zookeeper` `curator` jars, please help to review, cc @jerryshao @caican00
```
du -sh distribution/package/catalogs/lakehouse-paimon/libs/* | sort -h
4.0K distribution/package/catalogs/lakehouse-paimon/libs/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
8.0K distribution/package/catalogs/lakehouse-paimon/libs/failureaccess-1.0.1.jar
8.0K distribution/package/catalogs/lakehouse-paimon/libs/jcip-annotations-1.0-1.jar
12K distribution/package/catalogs/lakehouse-paimon/libs/slf4j-reload4j-1.7.36.jar
16K distribution/package/catalogs/lakehouse-paimon/libs/xmlenc-0.52.jar
20K distribution/package/catalogs/lakehouse-paimon/libs/api-asn1-api-1.0.0-M20.jar
20K distribution/package/catalogs/lakehouse-paimon/libs/error_prone_annotations-2.21.1.jar
20K distribution/package/catalogs/lakehouse-paimon/libs/java-xmlbuilder-0.4.jar
20K distribution/package/catalogs/lakehouse-paimon/libs/jsr305-3.0.2.jar
28K distribution/package/catalogs/lakehouse-paimon/libs/log4j-slf4j2-impl-2.22.0.jar
32K distribution/package/catalogs/lakehouse-paimon/libs/accessors-smart-1.2.jar
32K distribution/package/catalogs/lakehouse-paimon/libs/paranamer-2.3.jar
36K distribution/package/catalogs/lakehouse-paimon/libs/jackson-datatype-jdk8-2.14.2.jar
44K distribution/package/catalogs/lakehouse-paimon/libs/apacheds-i18n-2.0.0-M15.jar
44K distribution/package/catalogs/lakehouse-paimon/libs/commons-cli-1.2.jar
48K distribution/package/catalogs/lakehouse-paimon/libs/hadoop-annotations-2.10.2.jar
56K distribution/package/catalogs/lakehouse-paimon/libs/asm-5.0.4.jar
56K distribution/package/catalogs/lakehouse-paimon/libs/jackson-dataformat-yaml-2.14.2.jar
64K distribution/package/catalogs/lakehouse-paimon/libs/commons-logging-1.2.jar
64K distribution/package/catalogs/lakehouse-paimon/libs/gravitino-catalog-lakehouse-paimon-0.7.0-incubating-SNAPSHOT.jar
64K distribution/package/catalogs/lakehouse-paimon/libs/slf4j-api-2.0.9.jar
68K distribution/package/catalogs/lakehouse-paimon/libs/paimon-hive-catalog-0.8.0.jar
76K distribution/package/catalogs/lakehouse-paimon/libs/jackson-annotations-2.14.2.jar
80K distribution/package/catalogs/lakehouse-paimon/libs/api-util-1.0.0-M20.jar
100K distribution/package/catalogs/lakehouse-paimon/libs/jsp-api-2.1.jar
104K distribution/package/catalogs/lakehouse-paimon/libs/jackson-dataformat-csv-2.14.2.jar
120K distribution/package/catalogs/lakehouse-paimon/libs/jackson-datatype-jsr310-2.14.2.jar
120K distribution/package/catalogs/lakehouse-paimon/libs/json-smart-2.3.jar
124K distribution/package/catalogs/lakehouse-paimon/libs/hadoop-auth-2.10.2.jar
144K distribution/package/catalogs/lakehouse-paimon/libs/commons-digester-1.8.jar
180K distribution/package/catalogs/lakehouse-paimon/libs/aircompressor-0.21.jar
188K distribution/package/catalogs/lakehouse-paimon/libs/gson-2.2.4.jar
192K distribution/package/catalogs/lakehouse-paimon/libs/stax2-api-4.2.1.jar
204K distribution/package/catalogs/lakehouse-paimon/libs/commons-io-2.5.jar
220K distribution/package/catalogs/lakehouse-paimon/libs/checker-qual-3.37.0.jar
224K distribution/package/catalogs/lakehouse-paimon/libs/gravitino-api-0.7.0-incubating-SNAPSHOT.jar
228K distribution/package/catalogs/lakehouse-paimon/libs/jackson-core-asl-1.9.13.jar
244K distribution/package/catalogs/lakehouse-paimon/libs/commons-beanutils-1.9.4.jar
268K distribution/package/catalogs/lakehouse-paimon/libs/commons-net-3.1.jar
276K distribution/package/catalogs/lakehouse-paimon/libs/jsch-0.1.55.jar
280K distribution/package/catalogs/lakehouse-paimon/libs/commons-lang-2.6.jar
292K distribution/package/catalogs/lakehouse-paimon/libs/commons-configuration-1.6.jar
324K distribution/package/catalogs/lakehouse-paimon/libs/httpcore-4.4.13.jar
324K distribution/package/catalogs/lakehouse-paimon/libs/snakeyaml-1.33.jar
328K distribution/package/catalogs/lakehouse-paimon/libs/commons-codec-1.11.jar
328K distribution/package/catalogs/lakehouse-paimon/libs/log4j-api-2.22.0.jar
328K distribution/package/catalogs/lakehouse-paimon/libs/reload4j-1.2.19.jar
332K distribution/package/catalogs/lakehouse-paimon/libs/gravitino-common-0.7.0-incubating-SNAPSHOT.jar
332K distribution/package/catalogs/lakehouse-paimon/libs/nimbus-jose-jwt-7.9.jar
348K distribution/package/catalogs/lakehouse-paimon/libs/log4j-1.2-api-2.22.0.jar
428K distribution/package/catalogs/lakehouse-paimon/libs/avro-1.7.7.jar
452K distribution/package/catalogs/lakehouse-paimon/libs/jackson-core-2.14.2.jar
512K distribution/package/catalogs/lakehouse-paimon/libs/woodstox-core-5.3.0.jar
524K distribution/package/catalogs/lakehouse-paimon/libs/protobuf-java-2.5.0.jar
528K distribution/package/catalogs/lakehouse-paimon/libs/jets3t-0.9.0.jar
576K distribution/package/catalogs/lakehouse-paimon/libs/commons-collections-3.2.2.jar
644K distribution/package/catalogs/lakehouse-paimon/libs/commons-lang3-3.14.0.jar
668K distribution/package/catalogs/lakehouse-paimon/libs/lz4-java-1.8.0.jar
676K distribution/package/catalogs/lakehouse-paimon/libs/apacheds-kerberos-codec-2.0.0-M15.jar
764K distribution/package/catalogs/lakehouse-paimon/libs/httpclient-4.5.13.jar
764K distribution/package/catalogs/lakehouse-paimon/libs/jackson-mapper-asl-1.9.13.jar
768K distribution/package/catalogs/lakehouse-paimon/libs/gravitino-core-0.7.0-incubating-SNAPSHOT.jar
892K distribution/package/catalogs/lakehouse-paimon/libs/caffeine-2.9.3.jar
964K distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-caffeine-2-2.9.3-0.8.0.jar
996K distribution/package/catalogs/lakehouse-paimon/libs/commons-compress-1.21.jar
1.3M distribution/package/catalogs/lakehouse-paimon/libs/paimon-core-0.8.0.jar
1.4M distribution/package/catalogs/lakehouse-paimon/libs/htrace-core4-4.1.0-incubating.jar
1.5M distribution/package/catalogs/lakehouse-paimon/libs/jackson-databind-2.14.2.jar
1.6M distribution/package/catalogs/lakehouse-paimon/libs/hadoop-mapreduce-client-core-2.10.2.jar
1.8M distribution/package/catalogs/lakehouse-paimon/libs/log4j-core-2.22.0.jar
1.9M distribution/package/catalogs/lakehouse-paimon/libs/snappy-java-1.1.8.3.jar
2.1M distribution/package/catalogs/lakehouse-paimon/libs/commons-math3-3.6.1.jar
2.8M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-jackson-2-2.14.2-0.8.0.jar
2.9M distribution/package/catalogs/lakehouse-paimon/libs/guava-32.1.3-jre.jar
2.9M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-guava-30-30.1.1-jre-0.8.0.jar
3.8M distribution/package/catalogs/lakehouse-paimon/libs/hadoop-common-2.10.2.jar
3.8M distribution/package/catalogs/lakehouse-paimon/libs/paimon-common-0.8.0.jar
5.0M distribution/package/catalogs/lakehouse-paimon/libs/hadoop-hdfs-2.10.2.jar
5.0M distribution/package/catalogs/lakehouse-paimon/libs/paimon-codegen-loader-0.8.0.jar
20M distribution/package/catalogs/lakehouse-paimon/libs/paimon-format-0.8.0.jar
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2368351936
Also, why do we need hdfs jar? I assume the hdfs client jar should be enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1749774057
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,36 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
- }
- implementation(libs.hadoop2.hdfs) {
Review Comment:
could you please do a basic test locally? such as built successfully and ran through the unit tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1743233966
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,37 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.apache.hadoop")
Review Comment:
@LiuQhahah here we can not exclude all the hadoop dependencies.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2311528666
@caican00 can you please help to review this PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #4547:
URL: https://github.com/apache/gravitino/pull/4547
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2331720668
> @FANNG1 could you help re-trigger this pipeline? Thanks
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1749774057
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,36 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
- }
- implementation(libs.hadoop2.hdfs) {
Review Comment:
and could you please do a basic test locally? such as built successfully and ran through the unit tests. thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 156MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2330688327
@FANNG1 could you help re-trigger this pipeline? Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2360186009
@jerryshao @FANNG1 LGTM, do you have further comments?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2368378621
> 2.9M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-guava-30-30.1.1-jre-0.8.0.jar
it's used by Paimon internally, we'd better to keep it.
> Can we remove these? 2.9M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-guava-30-30.1.1-jre-0.8.0.jar 28K distribution/package/catalogs/lakehouse-paimon/libs/log4j-slf4j2-impl-2.22.0.jar 1.8M distribution/package/catalogs/lakehouse-paimon/libs/log4j-core-2.22.0.jar
Yes, this could be removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "LiuQhahah (via GitHub)" <gi...@apache.org>.
LiuQhahah commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2350776692
> @LiuQhahah @caican00 is there any block on this, can we move forward this PR?
Hi @caican00
please review the commit.
thank you .
Qiang
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2372853670
> > > Also, why do we need hdfs jar? I assume the hdfs client jar should be enough.
> >
> >
> > Kerberos relies on the default HDFS configuration, removing hdfs jar may cause Kerberos operation failed, cc @yuqi1129
>
> Yeah, it will make Paimon Kerberos-related tests fail. Let's leave it as is now.
I have tested it and we can make hdfs as testImplementation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2378331488
> > > > Why the paimon format jar is so big, is it correct?
> > >
> > >
> > > Paimon format jar packages the dependences in the jar, @caican00 do you know any other alternative jars?
> >
> >
> > @caican00 any thoughts on this?
>
> let me check it.
The paimon catalog explicitly calls the code in the paimon-format module, so it cannot be replaced with other jars.
I exclude more dependencies and ran through the integration tests. And deployed it on physical machines for testing.
**ITS:**


**physical enviroment:**

I have no permission to push code to the repo, please help update the pr.
```
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
exclude("org.apache.curator")
exclude("org.apache.hive")
exclude("org.apache.hbase")
exclude("org.apache.zookeeper")
exclude("org.eclipse.jetty.aggregate:jetty-all")
exclude("org.mortbay.jetty")
exclude("org.mortbay.jetty:jetty")
exclude("org.mortbay.jetty:jetty-util")
exclude("org.mortbay.jetty:jetty-sslengine")
exclude("it.unimi.dsi")
exclude("com.ververica")
exclude("org.apache.hadoop")
exclude("org.apache.commons")
exclude("org.xerial.snappy")
exclude("com.github.luben")
exclude("com.google.protobuf")
exclude("joda-time")
exclude("org.apache.parquet:parquet-jackson")
exclude("org.apache.parquet:parquet-format-structures")
exclude("org.apache.parquet:parquet-encoding")
exclude("org.apache.parquet:parquet-common")
exclude("org.apache.parquet:parquet-hadoop")
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 98MB [gravitino]
Posted by "LiuQhahah (via GitHub)" <gi...@apache.org>.
LiuQhahah commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2367870669
> @LiuQhahah can you please list all the jars and paste here on Github for Paimon catalog? You can use `./gradlew compileDistribution` to get a distribution, then check the paimon catalog dir to list all the jars.
Hi @jerryshao
Sorry for the late reply.
```
~/workspace/gravitino/distribution/package/catalogs/lakehouse-paimon/libs on #4545-Shrink-Paimon-catalog-binary-package-size! ⌚ 18:53:02
$ ls -alth .
total 200128
-rw-r--r--@ 1 qiang_liu staff 643K Sep 18 21:30 commons-lang3-3.14.0.jar
drwxr-xr-x@ 114 qiang_liu staff 3.6K Sep 18 21:30 .
-rw-r--r--@ 1 qiang_liu staff 2.8M Sep 18 21:30 hadoop-yarn-api-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 2.4K Sep 18 21:30 javax.inject-1.jar
-rw-r--r--@ 1 qiang_liu staff 24K Sep 18 21:30 commons-daemon-1.0.13.jar
-rw-r--r--@ 1 qiang_liu staff 762K Sep 18 21:30 jackson-mapper-asl-1.9.13.jar
-rw-r--r--@ 1 qiang_liu staff 19K Sep 18 21:30 jsr305-3.0.2.jar
-rw-r--r--@ 1 qiang_liu staff 325K Sep 18 21:30 log4j-api-2.22.0.jar
-rw-r--r--@ 1 qiang_liu staff 119K Sep 18 21:30 jackson-datatype-jsr310-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 1.0M Sep 18 21:30 leveldbjni-all-1.8.jar
-rw-r--r--@ 1 qiang_liu staff 1.5M Sep 18 21:30 jackson-databind-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 4.1M Sep 18 21:30 hadoop-hdfs-client-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 75K Sep 18 21:30 jackson-annotations-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 3.8M Sep 18 21:30 hadoop-common-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 762K Sep 18 21:30 httpclient-4.5.13.jar
-rw-r--r--@ 1 qiang_liu staff 278K Sep 18 21:30 commons-lang-2.6.jar
-rw-r--r--@ 1 qiang_liu staff 527K Sep 18 21:30 jets3t-0.9.0.jar
-rw-r--r--@ 1 qiang_liu staff 122K Sep 18 21:30 hadoop-auth-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 186K Sep 18 21:30 gson-2.2.4.jar
-rw-r--r--@ 1 qiang_liu staff 267K Sep 18 21:30 commons-net-3.1.jar
-rw-r--r--@ 1 qiang_liu staff 276K Sep 18 21:30 jsch-0.1.55.jar
-rw-r--r--@ 1 qiang_liu staff 29K Sep 18 21:30 accessors-smart-1.2.jar
-rw-r--r--@ 1 qiang_liu staff 78K Sep 18 21:30 api-util-1.0.0-M20.jar
-rw-r--r--@ 1 qiang_liu staff 272K Sep 18 21:30 cglib-2.2.1-v20090111.jar
-rw-r--r--@ 1 qiang_liu staff 241K Sep 18 21:30 commons-beanutils-1.9.4.jar
-rw-r--r--@ 1 qiang_liu staff 42K Sep 18 21:30 asm-3.1.jar
-rw-r--r--@ 1 qiang_liu staff 277K Sep 18 21:30 curator-recipes-2.13.0.jar
-rw-r--r--@ 1 qiang_liu staff 2.9M Sep 18 21:30 guava-32.1.3-jre.jar
-rw-r--r--@ 1 qiang_liu staff 2.9M Sep 18 21:30 paimon-shade-guava-30-30.1.1-jre-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 675K Sep 18 21:30 apacheds-kerberos-codec-2.0.0-M15.jar
-rw-r--r--@ 1 qiang_liu staff 1.8M Sep 18 21:30 log4j-core-2.22.0.jar
-rw-r--r--@ 1 qiang_liu staff 16K Sep 18 21:30 api-asn1-api-1.0.0-M20.jar
-rw-r--r--@ 1 qiang_liu staff 1.2M Sep 18 21:30 netty-3.10.6.Final.jar
-rw-r--r--@ 1 qiang_liu staff 215K Sep 18 21:30 xml-apis-1.4.01.jar
-rw-r--r--@ 1 qiang_liu staff 575K Sep 18 21:30 commons-collections-3.2.2.jar
-rw-r--r--@ 1 qiang_liu staff 29K Sep 18 21:30 paranamer-2.3.jar
-rw-r--r--@ 1 qiang_liu staff 66K Sep 18 21:30 paimon-hive-catalog-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 53K Sep 18 21:30 jackson-dataformat-yaml-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 18K Sep 18 21:30 java-xmlbuilder-0.4.jar
-rw-r--r--@ 1 qiang_liu staff 694K Sep 18 21:30 guice-3.0.jar
-rw-r--r--@ 1 qiang_liu staff 16K Sep 18 21:30 error_prone_annotations-2.21.1.jar
-rw-r--r--@ 1 qiang_liu staff 20K Sep 18 21:30 audience-annotations-0.5.0.jar
-rw-r--r--@ 1 qiang_liu staff 52K Sep 18 21:30 asm-5.0.4.jar
-rw-r--r--@ 1 qiang_liu staff 345K Sep 18 21:30 log4j-1.2-api-2.22.0.jar
-rw-r--r--@ 1 qiang_liu staff 2.1M Sep 18 21:30 commons-math3-3.6.1.jar
-rw-r--r--@ 1 qiang_liu staff 5.0M Sep 18 21:30 hadoop-hdfs-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 327K Sep 18 21:30 commons-codec-1.11.jar
-rw-r--r--@ 1 qiang_liu staff 63K Sep 18 21:30 slf4j-api-2.0.9.jar
-rw-r--r--@ 1 qiang_liu staff 98K Sep 18 21:30 jsp-api-2.1.jar
-rw-r--r--@ 1 qiang_liu staff 323K Sep 18 21:30 okhttp-2.7.5.jar
-rw-r--r--@ 1 qiang_liu staff 34K Sep 18 21:30 jackson-datatype-jdk8-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 2.1K Sep 18 21:30 listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
-rw-r--r--@ 1 qiang_liu staff 270K Sep 18 21:30 hadoop-yarn-client-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 994K Sep 18 21:30 commons-compress-1.21.jar
-rw-r--r--@ 1 qiang_liu staff 227K Sep 18 21:30 jackson-core-asl-1.9.13.jar
-rw-r--r--@ 1 qiang_liu staff 204K Sep 18 21:30 commons-io-2.5.jar
-rw-r--r--@ 1 qiang_liu staff 5.0M Sep 18 21:30 paimon-codegen-loader-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 324K Sep 18 21:30 snakeyaml-1.33.jar
-rw-r--r--@ 1 qiang_liu staff 64K Sep 18 21:30 okio-1.6.0.jar
-rw-r--r--@ 1 qiang_liu staff 2.3M Sep 18 21:30 curator-client-2.13.0.jar
-rw-r--r--@ 1 qiang_liu staff 197K Sep 18 21:30 curator-framework-2.13.0.jar
-rw-r--r--@ 1 qiang_liu staff 219K Sep 18 21:30 checker-qual-3.37.0.jar
-rw-r--r--@ 1 qiang_liu staff 117K Sep 18 21:30 json-smart-2.3.jar
-rw-r--r--@ 1 qiang_liu staff 4.0M Sep 18 21:30 netty-all-4.1.50.Final.jar
-rw-r--r--@ 1 qiang_liu staff 1.9M Sep 18 21:30 hadoop-yarn-common-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 2.8M Sep 18 21:30 paimon-shade-jackson-2-2.14.2-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 331K Sep 18 21:30 nimbus-jose-jwt-7.9.jar
-rw-r--r--@ 1 qiang_liu staff 26K Sep 18 21:30 jackson-xc-1.9.13.jar
-rw-r--r--@ 1 qiang_liu staff 15K Sep 18 21:30 xmlenc-0.52.jar
-rw-r--r--@ 1 qiang_liu staff 191K Sep 18 21:30 stax2-api-4.2.1.jar
-rw-r--r--@ 1 qiang_liu staff 4.5K Sep 18 21:30 failureaccess-1.0.1.jar
-rw-r--r--@ 1 qiang_liu staff 4.6K Sep 18 21:30 jcip-annotations-1.0-1.jar
-rw-r--r--@ 1 qiang_liu staff 521K Sep 18 21:30 protobuf-java-2.5.0.jar
-rw-r--r--@ 1 qiang_liu staff 140K Sep 18 21:30 commons-digester-1.8.jar
-rw-r--r--@ 1 qiang_liu staff 331K Sep 18 21:30 gravitino-common-0.7.0-incubating-SNAPSHOT.jar
-rw-r--r--@ 1 qiang_liu staff 40K Sep 18 21:30 commons-cli-1.2.jar
-rw-r--r--@ 1 qiang_liu staff 478K Sep 18 21:30 log4j-1.2.17.jar
-rw-r--r--@ 1 qiang_liu staff 1.3M Sep 18 21:30 paimon-core-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 961K Sep 18 21:30 paimon-shade-caffeine-2-2.9.3-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 766K Sep 18 21:30 gravitino-core-0.7.0-incubating-SNAPSHOT.jar
-rw-r--r--@ 1 qiang_liu staff 890K Sep 18 21:30 zookeeper-3.4.14.jar
-rw-r--r--@ 1 qiang_liu staff 426K Sep 18 21:30 avro-1.7.7.jar
-rw-r--r--@ 1 qiang_liu staff 510K Sep 18 21:30 woodstox-core-5.3.0.jar
-rw-r--r--@ 1 qiang_liu staff 46K Sep 18 21:30 hadoop-annotations-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 102K Sep 18 21:30 jackson-dataformat-csv-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 15K Sep 18 21:30 spotbugs-annotations-3.1.9.jar
-rw-r--r--@ 1 qiang_liu staff 18K Sep 18 21:30 jackson-jaxrs-1.9.13.jar
-rw-r--r--@ 1 qiang_liu staff 1.9M Sep 18 21:30 snappy-java-1.1.8.3.jar
-rw-r--r--@ 1 qiang_liu staff 321K Sep 18 21:30 httpcore-4.4.13.jar
-rw-r--r--@ 1 qiang_liu staff 103K Sep 18 21:30 jaxb-api-2.2.2.jar
-rw-r--r--@ 1 qiang_liu staff 85K Sep 18 21:30 jline-0.9.94.jar
-rw-r--r--@ 1 qiang_liu staff 61K Sep 18 21:30 gravitino-catalog-lakehouse-paimon-0.7.0-incubating-SNAPSHOT.jar
-rw-r--r--@ 1 qiang_liu staff 9.6K Sep 18 21:30 slf4j-reload4j-1.7.36.jar
-rw-r--r--@ 1 qiang_liu staff 44K Sep 18 21:30 apacheds-i18n-2.0.0-M15.jar
-rw-r--r--@ 1 qiang_liu staff 667K Sep 18 21:30 lz4-java-1.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 23K Sep 18 21:30 stax-api-1.0-2.jar
-rw-r--r--@ 1 qiang_liu staff 326K Sep 18 21:30 reload4j-1.2.19.jar
-rw-r--r--@ 1 qiang_liu staff 1.4M Sep 18 21:30 htrace-core4-4.1.0-incubating.jar
-rw-r--r--@ 1 qiang_liu staff 891K Sep 18 21:30 caffeine-2.9.3.jar
-rw-r--r--@ 1 qiang_liu staff 63K Sep 18 21:30 guice-servlet-3.0.jar
-rw-r--r--@ 1 qiang_liu staff 448K Sep 18 21:30 jackson-core-2.14.2.jar
-rw-r--r--@ 1 qiang_liu staff 20M Sep 18 21:30 paimon-format-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 292K Sep 18 21:30 commons-configuration-1.6.jar
-rw-r--r--@ 1 qiang_liu staff 4.4K Sep 18 21:30 aopalliance-1.0.jar
-rw-r--r--@ 1 qiang_liu staff 62K Sep 18 21:30 activation-1.1.jar
-rw-r--r--@ 1 qiang_liu staff 12K Sep 18 21:30 slf4j-log4j12-1.7.25.jar
-rw-r--r--@ 1 qiang_liu staff 179K Sep 18 21:30 aircompressor-0.21.jar
-rw-r--r--@ 1 qiang_liu staff 27K Sep 18 21:30 log4j-slf4j2-impl-2.22.0.jar
-rw-r--r--@ 1 qiang_liu staff 60K Sep 18 21:30 commons-logging-1.2.jar
-rw-r--r--@ 1 qiang_liu staff 3.8M Sep 18 21:30 paimon-common-0.8.0.jar
-rw-r--r--@ 1 qiang_liu staff 222K Sep 18 21:30 gravitino-api-0.7.0-incubating-SNAPSHOT.jar
-rw-r--r--@ 1 qiang_liu staff 1.5M Sep 18 21:30 hadoop-mapreduce-client-core-2.10.2.jar
-rw-r--r--@ 1 qiang_liu staff 1.3M Sep 18 21:30 xercesImpl-2.12.0.jar
drwxr-xr-x@ 4 qiang_liu staff 128B Sep 18 21:30 ..
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 75MB [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#issuecomment-2367953706
> 2.9M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-guava-30-30.1.1-jre-0.8.0.jar
Can we remove these?
2.9M distribution/package/catalogs/lakehouse-paimon/libs/paimon-shade-guava-30-30.1.1-jre-0.8.0.jar
28K distribution/package/catalogs/lakehouse-paimon/libs/log4j-slf4j2-impl-2.22.0.jar
1.8M distribution/package/catalogs/lakehouse-paimon/libs/log4j-core-2.22.0.jar
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#4545] improvement(paimon-catalog): reduce catalog-lakehouse-paimon libs size from 222MB to 74MB [gravitino]
Posted by "caican00 (via GitHub)" <gi...@apache.org>.
caican00 commented on code in PR #4547:
URL: https://github.com/apache/gravitino/pull/4547#discussion_r1749770267
##########
catalogs/catalog-lakehouse-paimon/build.gradle.kts:
##########
@@ -30,29 +30,36 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val paimonVersion: String = libs.versions.paimon.get()
dependencies {
- implementation(project(":api"))
- implementation(project(":common"))
- implementation(project(":core"))
+ implementation(project(":api")) {
+ exclude("*")
+ }
+ implementation(project(":common")) {
+ exclude("*")
+ }
+ implementation(project(":core")) {
+ exclude("*")
+ }
implementation(libs.bundles.paimon) {
exclude("com.sun.jersey")
exclude("javax.servlet")
+ exclude("org.apache.hive")
+ exclude("org.apache.hbase")
+ exclude("it.unimi.dsi")
+ exclude("org.mortbay.jetty")
+ exclude("org.apache.parquet")
+ exclude("org.mortbay.jetty:jetty")
+ exclude("org.mortbay.jetty:jetty-util")
+ exclude("org.mortbay.jetty:jetty-sslengine")
+ exclude("org.eclipse.jetty.aggregate:jetty-all")
}
implementation(libs.bundles.log4j)
implementation(libs.commons.lang3)
- implementation(libs.caffeine)
implementation(libs.guava)
implementation(libs.hadoop2.common) {
exclude("com.github.spotbugs")
exclude("com.sun.jersey")
exclude("javax.servlet")
- }
- implementation(libs.hadoop2.hdfs) {
Review Comment:
@LiuQhahah gravitino paimon catalog supports FilesystemCatalog as its backend catalog, and therefore we can not remove the hdfs dependency.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org