You can just pass it around as a parameter. On May 12, 2014, at 12:37 PM, yh18190 <yh18...@gmail.com> wrote:
> Hi, > > Could anyone suggest an idea how can we create sparkContext object in other > classes or fucntions where we need to convert a scala collection to RDD > using sc object.like sc.makeRDD(list).instead of using Main class > sparkcontext object? > is their a way to pass sc object as a parameter to function in other > classes? > Please let me know > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Is-their-a-way-to-Create-SparkContext-object-tp5612.html > Sent from the Apache Spark User List mailing list archive at Nabble.com.