AnsweredAssumed Answered

Error Running Spark Examples on MapR Sandbox

Question asked by vsbgugan on Sep 21, 2015
Latest reply on Sep 21, 2015 by vsbgugan
I am getting the following exception while trying to run SparkPi example in MapR Sandbox for VirtualBox (4.1 version). Any help in this regard is highly appreciated. Thanks

    [mapr@maprdemo bin]$ ./run-example SparkPi 10
    15/09/16 18:11:48 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    15/09/16 18:11:51 ERROR SparkContext: Error initializing SparkContext.
    java.io.FileNotFoundException: Requested file maprfs:///apps/spark does not exist.
     at com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:1318)
     at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:928)
     at org.apache.spark.scheduler.EventLoggingListener.start(EventLoggingListener.scala:100)
     at org.apache.spark.SparkContext.<init>(SparkContext.scala:515)
     at org.apache.spark.examples.SparkPi$.main(SparkPi.scala:28)
     at org.apache.spark.examples.SparkPi.main(SparkPi.scala)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:665)
     at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:170)
     at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:193)
     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:112)
     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    Exception in thread "main" java.io.FileNotFoundException: Requested file maprfs:///apps/spark does not exist.
     at com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:1318)
     at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:928)
     at org.apache.spark.scheduler.EventLoggingListener.start(EventLoggingListener.scala:100)
     at org.apache.spark.SparkContext.<init>(SparkContext.scala:515)
     at org.apache.spark.examples.SparkPi$.main(SparkPi.scala:28)
     at org.apache.spark.examples.SparkPi.main(SparkPi.scala)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:665)
     at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:170)
     at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:193)
     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:112)
     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    [mapr@maprdemo bin]$


Outcomes