Re: How to print more lines in spark-shell

2015-02-23 Thread Mark Hamstra
Yes, if you're willing to add an explicit foreach(println), then that is the simplest solution. Else changing maxPrintString should modify the default output of the Scala/Spark REPL. On Mon, Feb 23, 2015 at 11:25 AM, Sean Owen wrote: > I'd imagine that myRDD.take(10).foreach(println) is the mos

Re: How to print more lines in spark-shell

2015-02-23 Thread Sean Owen
I'd imagine that myRDD.take(10).foreach(println) is the most straightforward thing but yeah you can probably change shell default behavior too. On Mon, Feb 23, 2015 at 7:15 PM, Mark Hamstra wrote: > That will produce very different output than just the 10 items that Manas > wants. > > This is ess

Re: How to print more lines in spark-shell

2015-02-23 Thread Mark Hamstra
That will produce very different output than just the 10 items that Manas wants. This is essentially a Scala shell issue, so this should apply: http://stackoverflow.com/questions/9516567/settings-maxprintstring-for-scala-2-9-repl On Mon, Feb 23, 2015 at 10:25 AM, Akhil Das wrote: > You can do i

Re: How to print more lines in spark-shell

2015-02-23 Thread Akhil Das
You can do it like myRDD.foreach(println(_)) to print everything. Thanks Best Regards On Mon, Feb 23, 2015 at 11:49 PM, Manas Kar wrote: > Hi experts, > I am using Spark 1.2 from CDH5.3. > When I issue commands like > myRDD.take(10) the result gets truncated after 4-5 records. > > Is there a

How to print more lines in spark-shell

2015-02-23 Thread Manas Kar
Hi experts, I am using Spark 1.2 from CDH5.3. When I issue commands like myRDD.take(10) the result gets truncated after 4-5 records. Is there a way to configure the same to show more items? ..Manas