环境:
tag release-1.11.2 commit fe361357 Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac" mvn clean [ERROR] Failed to execute goal on project flink-dist_2.11: Could not resolve dependencies for project org.apache.flink:flink-dist_2.11:jar:1.11.2: The following artifacts could not be resolved: org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2, org.apache.flink:flink-examples-streaming-twitter_2.11:jar:1.11.2, org.apache.flink:flink-fs-hadoop-shaded:jar:1.11.2, org.apache.flink:flink-s3-fs-base:jar:1.11.2: Could not find artifact org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2 in central (https://repo.maven.apache.org/maven2) -> [Help 1] mvn clean package -DskipTests [ERROR] ~/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[317,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro 各位大佬,我看文档上说maven用3.2.5最好,是不是mvn的问题,还是其他啥配置不太对 |
看着是mvn无法下载到某些包,你有使用过其他版本吗?如果都是相同的问题,那么应该是你本地环境或者网络环境的问题。
迟成 <[hidden email]> 于2020年9月25日周五 下午1:45写道: > 环境: > > tag release-1.11.2 > > commit fe361357 > > Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) > > Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: > /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre > > Default locale: zh_CN, platform encoding: UTF-8 > > OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac" > > > > mvn clean > > [ERROR] Failed to execute goal on project flink-dist_2.11: Could not > resolve dependencies for project > org.apache.flink:flink-dist_2.11:jar:1.11.2: The following artifacts could > not be resolved: > org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2, > org.apache.flink:flink-examples-streaming-twitter_2.11:jar:1.11.2, > org.apache.flink:flink-fs-hadoop-shaded:jar:1.11.2, > org.apache.flink:flink-s3-fs-base:jar:1.11.2: Could not find artifact > org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2 in > central (https://repo.maven.apache.org/maven2) -> [Help 1] > > > > mvn clean package -DskipTests > > [ERROR] > ~/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[317,31] > 找不到符号 > > [ERROR] 符号: 类 AvroMissingFieldException > > [ERROR] 位置: 程序包 org.apache.avro > > > > 各位大佬,我看文档上说maven用3.2.5最好,是不是mvn的问题,还是其他啥配置不太对 > > > > |
你好!
我使用了3.2.5和3.6.3,确实都是一样的错误,把avro依赖全部删除后依然是这个错误 网络可以把包下下来,也确实有avro这个包,但是包里面的某些方法没有,导致编译报错 是不是flink一定要在linux下面编译才可以呢?还是确实avro包有别的什么问题? 在 2020/9/25 下午2:34,“刘建刚”<[hidden email]> 写入: 看着是mvn无法下载到某些包,你有使用过其他版本吗?如果都是相同的问题,那么应该是你本地环境或者网络环境的问题。 迟成 <[hidden email]> 于2020年9月25日周五 下午1:45写道: > 环境: > > tag release-1.11.2 > > commit fe361357 > > Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) > > Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: > /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre > > Default locale: zh_CN, platform encoding: UTF-8 > > OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac" > > > > mvn clean > > [ERROR] Failed to execute goal on project flink-dist_2.11: Could not > resolve dependencies for project > org.apache.flink:flink-dist_2.11:jar:1.11.2: The following artifacts could > not be resolved: > org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2, > org.apache.flink:flink-examples-streaming-twitter_2.11:jar:1.11.2, > org.apache.flink:flink-fs-hadoop-shaded:jar:1.11.2, > org.apache.flink:flink-s3-fs-base:jar:1.11.2: Could not find artifact > org.apache.flink:flink-examples-streaming-state-machine_2.11:jar:1.11.2 in > central (https://repo.maven.apache.org/maven2) -> [Help 1] > > > > mvn clean package -DskipTests > > [ERROR] > ~/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[317,31] > 找不到符号 > > [ERROR] 符号: 类 AvroMissingFieldException > > [ERROR] 位置: 程序包 org.apache.avro > > > > 各位大佬,我看文档上说maven用3.2.5最好,是不是mvn的问题,还是其他啥配置不太对 > > > > |
In reply to this post by 迟成
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project flink-parquet_2.11: Compilation failure: Compilation failure: [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[390,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[416,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[418,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[458,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[461,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[533,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[559,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[561,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[576,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[579,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[318,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[344,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[346,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[367,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[370,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[317,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[343,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[345,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[354,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[357,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[246,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[272,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[274,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[287,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[290,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[715,35] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[727,31] 找不到符号 [ERROR] 符号: 类 AvroMissingFieldException [ERROR] 位置: 程序包 org.apache.avro [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[753,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[755,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[875,3] 方法不会覆盖或实现超类型的方法 [ERROR] /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[878,51] 找不到符号 [ERROR] 符号: 方法 readFieldOrderIfDiff() [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in [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: -- Sent from: http://apache-flink.147419.n8.nabble.com/ |
编译问题,大多包没下好,多来几次
mvn clean install -DskipTests -Drat.skip=true 亲测有效 shaoshuai <[hidden email]> 于2020年12月21日周一 下午4:53写道: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile > (default-testCompile) on project flink-parquet_2.11: Compilation failure: > Compilation failure: > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[390,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[416,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[418,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[458,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/SimpleRecord.java:[461,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[533,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[559,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[561,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[576,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Address.java:[579,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[318,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[344,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[346,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[367,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/MapItem.java:[370,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[317,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[343,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[345,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[354,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/ArrayItem.java:[357,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[246,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[272,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[274,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[287,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/Bar.java:[290,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[715,35] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[727,31] > 找不到符号 > [ERROR] 符号: 类 AvroMissingFieldException > [ERROR] 位置: 程序包 org.apache.avro > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[753,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[755,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[875,3] > 方法不会覆盖或实现超类型的方法 > [ERROR] > > /Users/goushaoshuai/code/flink/flink/flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/NestedRecord.java:[878,51] > 找不到符号 > [ERROR] 符号: 方法 readFieldOrderIfDiff() > [ERROR] 位置: 类型为org.apache.avro.io.ResolvingDecoder的变量 in > [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: > > > > -- > Sent from: http://apache-flink.147419.n8.nabble.com/ > |
In reply to this post by 迟成
看了下找不到的包是example相关的包(不影响core相关代码),可以从别处下载下来,然后添加到本地maven库内。
-- Sent from: http://apache-flink.147419.n8.nabble.com/ |
Free forum by Nabble | Edit this page |