Hello Spark experts!

I am using spark 1.5.1 and get the following exception  while running
sample applications

Any tips/ hints on how to solve the error below will be of great help!


_________________________________________________________________
*Exception in thread "main" java.lang.IllegalStateException: Cannot call
methods on a stopped SparkContext*
        at org.apache.spark.SparkContext.org
$apache$spark$SparkContext$$assertNotStopped(SparkContext.scala:103)
        at
org.apache.spark.SparkContext.defaultParallelism(SparkContext.scala:2052)
        at
org.apache.spark.api.java.JavaSparkContext.parallelizePairs(JavaSparkContext.scala:169)
        at
com.slb.sis.bolt.test.samples.SparkAPIExamples.mapsFromPairsToPairs(SparkAPIExamples.java:156)
        at
com.slb.sis.bolt.test.samples.SparkAPIExamples.main(SparkAPIExamples.java:33)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
        at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
        at
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
____________________________________________________________________________

Thanks in advance.

Warm regards,
Sunil M.

Reply via email to