GitHub user wangyum opened a pull request:
https://github.com/apache/spark/pull/21785
[SPARK-24529][BUILD][FOLLOW-UP] Set spotbugs-maven-plugin's fork to true
## What changes were proposed in this pull request?
Set `spotbugs-maven-plugin`'s fork to `true`, otherwise will throw
exception then make distribution:
```
./dev/make-distribution.sh --name SPARK-24529 --tgz -Phadoop-2.7 -Phive
-Phive-thriftserver -Pyarn -Phadoop-provided
```
exception:
```java
...
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [
8.753 s]
[INFO] Spark Project Tags ................................. SUCCESS [
9.334 s]
[INFO] Spark Project Sketch ............................... SUCCESS [
12.029 s]
[INFO] Spark Project Local DB ............................. SUCCESS [
13.641 s]
[INFO] Spark Project Networking ........................... FAILURE [10:10
min]
[INFO] Spark Project Shuffle Streaming Service ............ SKIPPED
[INFO] Spark Project Unsafe ............................... SUCCESS [
16.415 s]
[INFO] Spark Project Launcher ............................. SKIPPED
[INFO] Spark Project Core ................................. SKIPPED
[INFO] Spark Project ML Local Library ..................... SKIPPED
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SUCCESS [
8.750 s]
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] Spark Project YARN ................................. SKIPPED
[INFO] Spark Project Hive Thrift Server ................... SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Integration for Kafka 0.10 ................... SKIPPED
[INFO] Kafka 0.10 Source for Structured Streaming ......... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SKIPPED
[INFO] Spark Avro ......................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10:29 min (Wall Clock)
[INFO] Finished at: 2018-07-16T21:39:46+08:00
[INFO] Final Memory: 61M/885M
[INFO]
------------------------------------------------------------------------
Timeout: sub-process interrupted
[ERROR] Failed to execute goal
com.github.spotbugs:spotbugs-maven-plugin:3.1.3:spotbugs (spotbugs) on project
spark-network-common_2.11: Execution spotbugs of goal
com.github.spotbugs:spotbugs-maven-plugin:3.1.3:spotbugs failed: Timeout:
killed the sub-process -> [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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :spark-network-common_2.11
org.apache.tools.ant.ExitException: Permission
("java.lang.RuntimePermission" "exitVM") was not granted.
at
org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:194)
at java.lang.Runtime.exit(Runtime.java:107)
at java.lang.System.exit(System.java:971)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:358)
Exception in thread "main" org.apache.tools.ant.ExitException: Permission
("java.lang.RuntimePermission" "exitVM") was not granted.
at
org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:194)
at java.lang.Runtime.exit(Runtime.java:107)
at java.lang.System.exit(System.java:971)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:364)
Timeout: sub-process interrupted
```
## How was this patch tested?
manual tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyum/spark SPARK-24529
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21785.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21785
----
commit 9d87160bc2c01321280d43f655c256c30d9fbc14
Author: Yuming Wang <yumwang@...>
Date: 2018-07-16T14:46:20Z
Fix ./dev/make-distribution.sh Permission error
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]