我正在针对 Hadoop 2.7 构建 Spark 3.2.0 但失败了。
$ git clone -b v3.2.0 https://github.com/apache/spark
$ mv spark spark-3.2.0
$ nohup sh -x dev/make-distribution.sh --tgz -Pyarn -Phadoop-2.7 -Dhadoop.version=2.7.2 -Phive -Phive-thriftserver -DskipTests > build.log 2>&1 &
错误
[ERROR] [Error] /home/myuser/spark-3.2.0/core/src/test/scala/org/apache/spark/deploy/security/HadoopDelegationTokenManagerSuite.scala:145: method reset in class UserGroupInformation cannot be accessed in object org.apache.hadoop.security.UserGroupInformation
...
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.3.0:testCompile (scala-test-compile-first) on project spark-core_2.12: Execution scala-test-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.3.0:testCompile failed.: CompileFailed -> [Help 1]