You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2025/01/27 03:03:51 UTC

[PR] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

yuqi1129 opened a new pull request, #6376:
URL: https://github.com/apache/gravitino/pull/6376

   
   ### What changes were proposed in this pull request?
   
   Remove jar `protobuf-java.jar` from the distribution package to avoid conflicts
   
   ### Why are the changes needed?
   
   To make authorization works for GCS fileset.
   
   Fix: #6375 
   
   ### Does this PR introduce _any_ user-facing change?
   
   N/A.
   
   ### How was this patch tested?
   
   N/A
   


-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1930057519


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -101,6 +103,9 @@ tasks {
       exclude("javax.servlet-*.jar")
       exclude("kerb-*.jar")
       exclude("kerby-*.jar")
+      // As L55-56 takes no effect actually in the final distribution package, we need to exclude

Review Comment:
   Maybe some other jars introduce `protobuf-java` dependences too



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1942986409


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -52,6 +52,8 @@ dependencies {
     exclude("org.eclipse.jetty", "*")
     exclude("io.netty")
     exclude("org.fusesource.leveldbjni")
+    // Exclude protobuf-java to avoid conflict with;

Review Comment:
   The comment is not complete?



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1942989638


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -52,6 +52,8 @@ dependencies {
     exclude("org.eclipse.jetty", "*")
     exclude("io.netty")
     exclude("org.fusesource.leveldbjni")
+    // Exclude protobuf-java to avoid conflict with;
+    exclude("com.google.protobuf", "protobuf-java")

Review Comment:
   Is exclude the `protobuf-java` in copy task is more general solution? since other package may introduce `protobuf-java` too.



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1930056403


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -52,6 +52,8 @@ dependencies {
     exclude("org.eclipse.jetty", "*")
     exclude("io.netty")
     exclude("org.fusesource.leveldbjni")
+    // Exclude protobuf-java to avoid conflict with;
+    exclude("com.google.protobuf", "protobuf-java")

Review Comment:
   is it still useful as you exclude the package in copy task



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1930056966


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -101,6 +103,9 @@ tasks {
       exclude("javax.servlet-*.jar")
       exclude("kerb-*.jar")
       exclude("kerby-*.jar")
+      // As L55-56 takes no effect actually in the final distribution package, we need to exclude

Review Comment:
   Please don't use `L55-56` the style, because the line number  will change. 



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #6376:
URL: https://github.com/apache/gravitino/pull/6376


-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1944024074


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -52,6 +52,8 @@ dependencies {
     exclude("org.eclipse.jetty", "*")
     exclude("io.netty")
     exclude("org.fusesource.leveldbjni")
+    // Exclude protobuf-java to avoid conflict with;
+    exclude("com.google.protobuf", "protobuf-java")

Review Comment:
   I'm afraid excluding it in the gradle dependencies may be more general. 
   
   > since other package may introduce protobuf-java too.
   
   Some modules use copy task to exclude jars because using `excluding` in gradle does not work. I believe this is not a very elegant behaviour. 
   



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#discussion_r1942705362


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -101,6 +103,9 @@ tasks {
       exclude("javax.servlet-*.jar")
       exclude("kerb-*.jar")
       exclude("kerby-*.jar")
+      // As L55-56 takes no effect actually in the final distribution package, we need to exclude

Review Comment:
   Resolved



-- 
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] [#6375] improvment(catalog-hadoop): Remove `protobuf-java` to avoid conflict with authorization module [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #6376:
URL: https://github.com/apache/gravitino/pull/6376#issuecomment-2638592939

   @yuqi1129 can you please update 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