Hi,
Can not reproduce your error on Spark 1.2.1 . It is not enough information.
What is your command line arguments wцру you starting spark-shell? what data
are you reading? etc.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell
8350 s
>> >> >> >>>>>> res1: Long = 1
>> >> >> >>>>>>
>> >> >> >>>>>> Ashish:
>> >> >> >>>>>> Please refine your example to mimic more close
>> >>>>>>
>>> >> >> >>>>>> scala> rdd.count()
>>> >> >> >>>>>> ...
>>> >> >> >>
;>>> MutableList()
>>>> >> >> >>>>>>
>>>> >> >> >>>>>> scala>
>>>> Range(0,1).foreach(i=>lst+=(("10","10",i:Double)))
>>>> >> >> >>>
>>>
>>>>> >> >> >>>>>> Using Spark shell :
>>>>> >> >> >>>>>>
>>>>> >> >> >>>>>> scala> import scala.collection.mutable.MutableList
>>>>
; >> >>>>> happens
>>>>>> >> >> >>>>> when I try to pass a variable into the closure. The
>>>>>> example you
>>>>>> >> >> >>>>> have
>>>>>> >> >> >>>>>
>>>> > StackOverFlowError each time I try to run the following code
>> >>>>>>> > (the
>> >>>>>>> > code
>> >>>>>>> > itself is just representative of other logic where I need to
>> >>>>>&
; must be executing something different.
>> >> >>>>>>>
>> >> >>>>>>> On Sun, Aug 30, 2015 at 4:21 AM, ashrowty
&g
,i:Double)))
sc.makeRDD(lst).map(i= if(a==10) 1 else 0)
Any help appreciated!
Thanks,
Ashish
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list archive
in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list archive at
Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr
)))
sc.makeRDD(lst).map(i= if(a==10) 1 else 0)
Any help appreciated!
Thanks,
Ashish
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list archive
/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h
in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list archive at
Nabble.com.
-
To unsubscribe, e-mail: user
)]()
Range(0,1).foreach(i=lst+=((10,10,i:Double)))
sc.makeRDD(lst).map(i= if(a==10) 1 else 0)
Any help appreciated!
Thanks,
Ashish
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent
(i=lst+=((10,10,i:Double)))
sc.makeRDD(lst).map(i= if(a==10) 1 else 0)
Any help appreciated!
Thanks,
Ashish
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-shell-and-StackOverFlowError-tp24508.html
Sent from the Apache Spark User List mailing list
15 matches
Mail list logo