Hi,

I'm currently trying to build Hadoop 3.3.6 from the rel/release-3.3.6 tag
(commit: 1be78238728da9266a4f88195058f08fd012bf9c). I have used the
docker-based environment, using `./start-build-env.sh`. In the shell I
issue `mvn package -Pdist -DskipTests` and after a while I get an error
message

```
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
hadoop-common ---
[INFO] Compiling 717 source files to
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/test-classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:
Some input files use or override a deprecated API.
[WARNING]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/KeyStoreTestUtil.java:
Recompile with -Xlint:deprecation for details.
[WARNING]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/LambdaTestUtils.java:
Some input files use unchecked or unsafe operations.
[WARNING]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/LambdaTestUtils.java:
Recompile with -Xlint:unchecked for details.
[INFO] 4 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[11,31]
package org.apache.avro.message does not exist
[ERROR]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[12,31]
package org.apache.avro.message does not exist
[ERROR]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[13,31]
package org.apache.avro.message does not exist
[ERROR]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[23,24]
cannot find symbol
  symbol:   class BinaryMessageEncoder
  location: class org.apache.hadoop.io.serializer.avro.AvroRecord
[ERROR]
/home/ubuntu/hadoop/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[26,24]
cannot find symbol
  symbol:   class BinaryMessageDecoder

....
```

I'm consistently getting the same error message on different environments
based on Ubuntu (bionic, focal and jammy). I tried to look for similar
errors in the issue mailing list but I have not found anything.

Am I doing anything wrong here?

Many thanks
Enrico

Reply via email to