You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by sivarani <wh...@gmail.com> on 2014/11/04 10:54:23 UTC
Re: java.io.NotSerializableException: org.apache.spark.SparkEnv
Same Issue .. How did you solve it?
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/java-io-NotSerializableException-org-apache-spark-SparkEnv-tp10641p18047.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: java.io.NotSerializableException: org.apache.spark.SparkEnv
Posted by sivarani <wh...@gmail.com>.
Hi Thanks for replying,
I have posted my code in
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-getOrCreate-tc18060.html
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/java-io-NotSerializableException-org-apache-spark-SparkEnv-tp10641p18172.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: java.io.NotSerializableException: org.apache.spark.SparkEnv
Posted by lordjoe <lo...@gmail.com>.
I posted on this issue in
http://apache-spark-user-list.1001560.n3.nabble.com/How-to-access-objects-declared-and-initialized-outside-the-call-method-of-JavaRDD-td17094.html#a17150
Code starts
public class SparkUtilities extends Serializable
private transient static ThreadLocal<JavaSparkContext> threadContext;
private static String appName = "Anonymous";
essentially you need to get a context on the slave machine saving it in a
transient (non serialized) field - at least that is what you want to do in
Java
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/java-io-NotSerializableException-org-apache-spark-SparkEnv-tp10641p18072.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: java.io.NotSerializableException: org.apache.spark.SparkEnv
Posted by Akhil Das <ak...@sigmoidanalytics.com>.
Can you paste the piece of code that you are running?
Thanks
Best Regards
On Tue, Nov 4, 2014 at 3:24 PM, sivarani <wh...@gmail.com> wrote:
> Same Issue .. How did you solve it?
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/java-io-NotSerializableException-org-apache-spark-SparkEnv-tp10641p18047.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>