I am new to Spark and I am trying to run the example SparkPi. I get the following error after a bunch of INFO messages.
Exception in thread "main" java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3004)
at java.net.URI.<init>(URI.java:577)
at spark.SparkContext.addJar(SparkContext.scala:511)
at spark.SparkContext$$anonfun$2.apply(SparkContext.scala:102)
at spark.SparkContext$$anonfun$2.apply(SparkContext.scala:102)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at spark.SparkContext.<init>(SparkContext.scala:102)
at spark.examples.SparkPi$.main(SparkPi.scala:14)
at spark.examples.SparkPi.main(SparkPi.scala)
I am running scala-2.9.3 (through macports) and Spark0.7.2 (with a clean sbt/sbt clean package install). I am running it on Mountain Lion. The directory examples/target has only the scala-2.9.3 directory which in turn has spark-examples_2.9.3-0.7.2.jar. There are no other jars in the scala-2.9.3 directory.
Any help would be greatly appreciated.