Commit 88d51c42 authored by Peter van 't Hof's avatar Peter van 't Hof

Adding all Jars

parent 2c2e3865
package nl.lumc.sasc.biopet.tools.vcfstats
import java.io.{File, PrintWriter}
import java.net.URLClassLoader
import htsjdk.variant.vcf.VCFFileReader
import nl.lumc.sasc.biopet.tools.vcfstats.VcfStats._
......@@ -124,6 +125,7 @@ object VcfStatsSpark extends ToolCommand {
val conf = new SparkConf()
.setAppName(this.getClass.getSimpleName)
.setMaster(cmdArgs.sparkMaster.getOrElse(s"local[${cmdArgs.localThreads}]"))
.setJars(ClassLoader.getSystemClassLoader.asInstanceOf[URLClassLoader].getURLs.map(_.getFile))
val sc = new SparkContext(conf)
logger.info("Spark context is up")
......@@ -183,7 +185,6 @@ object VcfStatsSpark extends ToolCommand {
cmdArgs.outputDir + "/sample_compare/allele_overlap",
samples)
Thread.sleep(1000000)
sc.stop
logger.info("Done")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment