Scaladocs 构建失败 kafka
Scaladocs build fails kafka
我正在尝试使用 gradle 按照 here 的解释从源代码构建 Apache kafka,但我无法构建 scaladocs。以下是相同的错误日志:
== Expanded type of tree ==
ConstantType(value = Constant(kafka.utils.timer.TimerTaskList))
uncaught exception during compilation: java.io.IOException
File name too long
two errors found
:core:compileScala FAILED
:core:compileScala (Thread[Daemon worker,5,main]) completed. Took 1 mins 4.416 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:compileScala'.
> Compilation failed
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 13.736 secs
Stopped 1 compiler daemon(s).
Received result
CommandFailure[value=org.gradle.launcher.exec.ReportedException:org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':core:compileScala'.] from daemon DaemonInfo{pid=5656, address=[4d0d3e79-f94a-43ca-b183-792d2bfe1a95 port:55666, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=1f1f4b55-9da9-4283-b361-8b0bfce3f208,javaHome=/usr/lib/jvm/java-7-oracle,daemonRegistryDir=/home/akshat/.gradle/daemon,pid=5656,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant]}.
虽然我怀疑这是内存问题,但我没有看到任何改变它的地方。我尝试在这里编辑:
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
}
但这并没有帮助。
是的,这可能与 Gradle 内存设置有关。您可以通过设置环境变量来增加 Gradle 堆:set GRADLE_OPTS=-Xmx1024m
(Windows),它可能会更好。
错误是由于我的主文件夹被加密造成的。 kafka 似乎无法安装在加密文件夹中。我不得不重新安装 ubuntu 来解决这个问题。别无选择。
我正在尝试使用 gradle 按照 here 的解释从源代码构建 Apache kafka,但我无法构建 scaladocs。以下是相同的错误日志:
== Expanded type of tree ==
ConstantType(value = Constant(kafka.utils.timer.TimerTaskList))
uncaught exception during compilation: java.io.IOException
File name too long
two errors found
:core:compileScala FAILED
:core:compileScala (Thread[Daemon worker,5,main]) completed. Took 1 mins 4.416 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:compileScala'.
> Compilation failed
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 13.736 secs
Stopped 1 compiler daemon(s).
Received result
CommandFailure[value=org.gradle.launcher.exec.ReportedException:org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':core:compileScala'.] from daemon DaemonInfo{pid=5656, address=[4d0d3e79-f94a-43ca-b183-792d2bfe1a95 port:55666, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=1f1f4b55-9da9-4283-b361-8b0bfce3f208,javaHome=/usr/lib/jvm/java-7-oracle,daemonRegistryDir=/home/akshat/.gradle/daemon,pid=5656,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant]}.
虽然我怀疑这是内存问题,但我没有看到任何改变它的地方。我尝试在这里编辑:
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
}
但这并没有帮助。
是的,这可能与 Gradle 内存设置有关。您可以通过设置环境变量来增加 Gradle 堆:set GRADLE_OPTS=-Xmx1024m
(Windows),它可能会更好。
错误是由于我的主文件夹被加密造成的。 kafka 似乎无法安装在加密文件夹中。我不得不重新安装 ubuntu 来解决这个问题。别无选择。