bydeath opened a new issue, #5552: URL: https://github.com/apache/hudi/issues/5552 **Describe the problem you faced** My first compiling hudi src failed **To Reproduce** Steps to reproduce the behavior: 1. git clone https://github.com/apache/hudi.git && cd hudi 2. mvn clean package -DskipTests **Stacktrace** ```Add the stacktrace of the error.``` [ERROR] hudi-src/hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:[189,7] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#1 of ?,java.util.Map<java.lang.String,org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>) method java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,? super org.apache.hudi.common.model.HoodieColumnRangeMetadata>,java.util.function.BiConsumer<R,R>) is not applicable (cannot infer type-variable(s) R (actual and formal argument lists differ in length)) method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>) is not applicable (cannot infer type-variable(s) R,A (argument mismatch; java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#1 of ?,java.util.Map<java.lang.String,org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>> cannot be converted to java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>)) [ERROR] hudi-src/hudi-common/src/main/java/org/apache/hudi/common/util/ParquetUtils.java:[332,11] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#2 of ?,java.util.Map<java.lang.String,java.util.List<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>>) method java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,? super org.apache.hudi.common.model.HoodieColumnRangeMetadata>,java.util.function.BiConsumer<R,R>) is not applicable (cannot infer type-variable(s) R (actual and formal argument lists differ in length)) method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>) is not applicable (cannot infer type-variable(s) R,A (argument mismatch; java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#2 of ?,java.util.Map<java.lang.String,java.util.List<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>> cannot be converted to java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>)) -- 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@hudi.apache.org.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
bydeath commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1126618859 > may I know which java version are you using ? > java8 is not yet certified. Thanks. It was JAVA 11 I think. Know I set the env JAVA_HOME to java8, it build successfully. The error may be related with JAVA 11. -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
mehedeehassan-paypay commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1366367106 Faced the same problem , After changing the `JAVA_HOME` worked properly. -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
alexeykudinkin commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1358327314 @danny0405 we have HUDI-2669 to track 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
nsivabalan commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1124386141 may I know which java version are you using ? > java8 is not yet certified. -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
alexeykudinkin closed issue #5552: [SUPPORT] It failed to compile raw hudi src with error "oodieTableMetadataUtil.java:[189,7] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata" URL: https://github.com/apache/hudi/issues/5552 -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
danny0405 commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1356227282 @alexeykudinkin Can we fix the compile error for jdk 11 then ? Jdk 11 should have the most number of users, it is better to support it though ~ -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
alberttwong commented on issue #5552: URL: https://github.com/apache/hudi/issues/5552#issuecomment-1532262775 ``` [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.033 s [INFO] Finished at: 2023-05-02T16:06:42-07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project hudi-common: Compilation failure: Compilation failure: [ERROR] /Users/atwong/sandbox/hudi/hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:[206,9] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#1 of ?,java.util.Map<java.lang.String,org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>) [ERROR] method java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,? super org.apache.hudi.common.model.HoodieColumnRangeMetadata>,java.util.function.BiConsumer<R,R>) is not applicable [ERROR] (cannot infer type-variable(s) R [ERROR] (actual and formal argument lists differ in length)) [ERROR] method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>) is not applicable [ERROR] (cannot infer type-variable(s) R,A [ERROR] (argument mismatch; java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#1 of ?,java.util.Map<java.lang.String,org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>> cannot be converted to java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>)) [ERROR] /Users/atwong/sandbox/hudi/hudi-common/src/main/java/org/apache/hudi/common/util/ParquetUtils.java:[339,11] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#2 of ?,java.util.Map<java.lang.String,java.util.List<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>>) [ERROR] method java.util.stream.Stream.<R>collect(java.util.function.Supplier<R>,java.util.function.BiConsumer<R,? super org.apache.hudi.common.model.HoodieColumnRangeMetadata>,java.util.function.BiConsumer<R,R>) is not applicable [ERROR] (cannot infer type-variable(s) R [ERROR] (actual and formal argument lists differ in length)) [ERROR] method java.util.stream.Stream.<R,A>collect(java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>) is not applicable [ERROR] (cannot infer type-variable(s) R,A [ERROR] (argument mismatch; java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>,capture#2 of ?,java.util.Map<java.lang.String,java.util.List<org.apache.hudi.common.model.HoodieColumnRangeMetadata<java.lang.Comparable>>>> cannot be converted to java.util.stream.Collector<? super org.apache.hudi.common.model.HoodieColumnRangeMetadata,A,R>)) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :hudi-common atwong@Alberts-MBP hudi % java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode) atwong@Alberts-MBP hudi % jenv version openjdk64-1.8.0.292 (set by /Users/atwong/.jenv/version) ```` -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org
bydeath closed issue #5552: [SUPPORT] It failed to compile raw hudi src with error "oodieTableMetadataUtil.java:[189,7] no suitable method found for collect(java.util.stream.Collector<org.apache.hudi.common.model.HoodieColumnRangeMetadata" URL: https://github.com/apache/hudi/issues/5552 -- 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@hudi.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org