Re: spark shell paste mode is not consistent

2015-04-16 Thread vinodkc
gt; the > > result of the last command. In the second case that is the whole pasted > > block so you see 19. > > On Apr 16, 2015 11:37 AM, "vinodkc" <[hidden email]> wrote: > > > >> Hi All, > >> > >> I faced below

Re: spark shell paste mode is not consistent

2015-04-16 Thread Sean Owen
den email]> wrote: > >> Hi All, >> >> I faced below issue while working with spark. It seems spark shell paste >> mode is not consistent >> >> Example code >> --- >> val textFile = sc.textFile("README.md") >>

Re: spark shell paste mode is not consistent

2015-04-16 Thread Vinod KC
econd case that is the whole pasted block so you see 19. On Apr 16, 2015 11:37 AM, "vinodkc" <[hidden email] <http:///user/SendEmail.jtp?type=node&node=11622&i=0>> wrote: > Hi All, > > I faced below issue while working with spark. It seems spark shell pas

Re: spark shell paste mode is not consistent

2015-04-16 Thread Sean Owen
: Long = 19 > > Expected result : Result 1 and Result 2 should be same > > I feel this is an issue with spark shell . I fixed and verified it > locally.If community also think that it need to be handled, I can make a > PR. > > Thanks > Vinod KC > > > > -- > Vie

spark shell paste mode is not consistent

2015-04-16 Thread vinodkc
Hi All, I faced below issue while working with spark. It seems spark shell paste mode is not consistent Example code --- val textFile = sc.textFile("README.md") textFile.count() textFile.first() val linesWithSpark = textFile.filter(line => line.contains("Spark&