spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Holway <andrew.hol...@otternetworks.de>
Subject javac - No such file or directory
Date Wed, 09 Nov 2016 13:43:42 GMT
I'm getting this error trying to build spark on Centos7. It is not googling
very well:

[error] (tags/compile:compileIncremental) java.io.IOException: Cannot run
program
"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/bin/javac"
(in directory "/home/spark/spark"): error=2, No such file or directory
Any ideas?

Thanks,

Andrew



Full output:

[success] created output: /home/spark/spark/external/kafka-0-10/target

[info] Compiling 2 Scala sources and 8 Java sources to
/home/spark/spark/common/tags/target/scala-2.11/classes...

java.io.IOException: Cannot run program
"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/bin/javac"
(in directory "/home/spark/spark"): error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:349)

at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:128)

at
sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)

at
sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)

at sbt.compiler.javac.JavacLogger.buffer(JavacProcessLogger.scala:31)

at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:159)

at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:156)

at
sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:24)

at
sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:17)

at
sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:47)

at
sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:44)

at sbt.IO$.withTemporaryDirectory(IO.scala:344)

at sbt.compiler.javac.ForkedJava$.withArgumentFile(ForkedJava.scala:44)

at sbt.compiler.javac.ForkedJava$.launch(ForkedJava.scala:17)

at sbt.compiler.javac.ForkedJavaCompiler.run(ForkedJava.scala:68)

at
sbt.compiler.javac.JavaCompilerAdapter.compileWithReporter(JavaCompilerAdapter.scala:31)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply$mcV$sp(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler.timed(AnalyzingJavaCompiler.scala:93)

at
sbt.compiler.javac.AnalyzingJavaCompiler.compile(AnalyzingJavaCompiler.scala:64)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)

at
sbt.compiler.MixedAnalyzingCompiler.compileJava$1(MixedAnalyzingCompiler.scala:59)

at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)

at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)

at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)

at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)

at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)

at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)

at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68)

at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67)

at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95)

at sbt.inc.Incremental$.compile(Incremental.scala:67)

at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)

at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)

at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)

at sbt.Compiler$.compile(Compiler.scala:152)

at sbt.Compiler$.compile(Compiler.scala:138)

at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)

at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)

at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)

at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)

at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)

at sbt.std.Transform$$anon$4.work(System.scala:63)

at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)

at sbt.Execute.work(Execute.scala:237)

at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)

at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.IOException: error=2, No such file or directory

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)

at java.lang.ProcessImpl.start(ProcessImpl.java:134)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:349)

at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:128)

at
sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)

at
sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)

at sbt.compiler.javac.JavacLogger.buffer(JavacProcessLogger.scala:31)

at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:159)

at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:156)

at
sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:24)

at
sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:17)

at
sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:47)

at
sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:44)

at sbt.IO$.withTemporaryDirectory(IO.scala:344)

at sbt.compiler.javac.ForkedJava$.withArgumentFile(ForkedJava.scala:44)

at sbt.compiler.javac.ForkedJava$.launch(ForkedJava.scala:17)

at sbt.compiler.javac.ForkedJavaCompiler.run(ForkedJava.scala:68)

at
sbt.compiler.javac.JavaCompilerAdapter.compileWithReporter(JavaCompilerAdapter.scala:31)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply$mcV$sp(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)

at
sbt.compiler.javac.AnalyzingJavaCompiler.timed(AnalyzingJavaCompiler.scala:93)

at
sbt.compiler.javac.AnalyzingJavaCompiler.compile(AnalyzingJavaCompiler.scala:64)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:60)

at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)

at
sbt.compiler.MixedAnalyzingCompiler.compileJava$1(MixedAnalyzingCompiler.scala:59)

at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)

at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)

at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)

at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)

at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)

at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)

at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68)

at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67)

at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95)

at sbt.inc.Incremental$.compile(Incremental.scala:67)

at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)

at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)

at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)

at sbt.Compiler$.compile(Compiler.scala:152)

at sbt.Compiler$.compile(Compiler.scala:138)

at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)

at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)

at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)

at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)

at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)

at sbt.std.Transform$$anon$4.work(System.scala:63)

at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)

at sbt.Execute.work(Execute.scala:237)

at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)

at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

[error] (tags/compile:compileIncremental) java.io.IOException: Cannot run
program
"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/bin/javac"
(in directory "/home/spark/spark"): error=2, No such file or directory

[error] Total time: 78 s, completed 09-Nov-2016 03:49:09

Mime
View raw message