Re: JavaNetworkWordCount Researches

2014-01-16 Thread Eduardo Costa Alfaia
On Wed, Jan 15, 2014 at 6:01 AM, Eduardo Costa Alfaia e.costaalf...@studenti.unibs.it wrote: Hi Guys, I did some changes in JavaNetworkWordCount for my researches in streaming process and I have added to the code the following lines in red: ssc1.checkpoint(hdfs://computer22:54310

Re: Print in JavaNetworkWordCount

2014-01-21 Thread Eduardo Costa Alfaia
2014/1/20 Eduardo Costa Alfaia e.costaalf...@studenti.unibs.it Hi guys, Somebody help me, Where do I get change the print() function to print more than 10 lines in screen? Is there a manner to print the count total of all words in a batch? Best Regards -- --- INFORMATIVA SUL

Re: Print in JavaNetworkWordCount

2014-01-28 Thread Eduardo Costa Alfaia
= rdd.take(n) println(First N elements = + firstN) // Count the number of elements in each batch println(RDD has + rdd.count() + elements) }) Alternatively, just for printing the counts, you can also do yourDStream.count.print() Hope this helps! TD 2014/1/20 Eduardo Costa

Re: Print in JavaNetworkWordCount

2014-01-28 Thread Eduardo Costa Alfaia
can also do yourDStream.count.print() Hope this helps! TD 2014/1/20 Eduardo Costa Alfaia e.costaalf...@studenti.unibs.it Hi guys, Somebody help me, Where do I get change the print() function to print more than 10 lines in screen? Is there a manner

Source code JavaNetworkWordcount

2014-01-30 Thread Eduardo Costa Alfaia
Hi Guys, I'm not very good like java programmer, so anybody could me help with this code piece from JavaNetworkWordcount: JavaPairDStreamString, Integer wordCounts = words.map( new PairFunctionString, String, Integer() { @Override public Tuple2String, Integer call(String

Re: Source code JavaNetworkWordcount

2014-02-05 Thread Eduardo Costa Alfaia
on replication if you want fault-tolerance. TD On Mon, Feb 3, 2014 at 3:19 PM, Eduardo Costa Alfaia e.costaalf...@unibs.it wrote: Hi Tathagata, You were right when you have said for me to use scala against java, scala is very easy. I have implemented that code you have given (in bold