Re: Spark Streaming Json file groupby function

2015-07-28 Thread Tathagata Das
pacted? > > > Thanks, > Swetha > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p24041.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > -

Re: Spark Streaming Json file groupby function

2015-07-28 Thread swetha
performance be impacted? Thanks, Swetha -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p24041.html Sent from the Apache Spark User List mailing list archive at Nabble.com

Re: Spark Streaming Json file groupby function

2014-07-30 Thread lalit1303
.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p10940.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-18 Thread srinivas
intln(sqlreport) //sqlreport.foreach(println) sqlreport.saveAsTextFile("/home/ubuntu/spark-1.0.0/external/jsonfile2/"+datenow) }) //results.print() ssc.start() ssc.awaitTermination() } Thanks, -Srinivas -- View this message in context: http://apache-spark-user-list.1001560.

Re: Spark Streaming Json file groupby function

2014-07-17 Thread srinivas
Hi TD, It Worked...Thank you so much for all your help. Thanks, -Srinivas. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p10132.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-17 Thread Tathagata Das
t > > 14/07/17 17:11:30 ERROR Executor: Exception in task ID 6 > java.lang.ClassCastException: java.lang.String cannot be cast to > java.lang.Integer > at scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:106) > > Basically i am trying to do max operation in my

Re: Spark Streaming Json file groupby function

2014-07-17 Thread srinivas
let me know if their any work around solution for this. Thanks, -Srinivas. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p10060.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-16 Thread Tathagata Das
gt;> >> org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:633) >> at scala.Option.foreach(Option.scala:236) >> at >> >> org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:633) >> at >> >> org.apache.spark.scheduler.DAGSchedulerEventProcessActor$$anonfun$receive$2.applyOrElse(DAGScheduler.scala:1207) >> at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) >> at akka.actor.ActorCell.invoke(ActorCell.scala:456) >> at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) >> at akka.dispatch.Mailbox.run(Mailbox.scala:219) >> at >> >> akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) >> at >> scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) >> at >> >> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) >> at >> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) >> at >> >> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) >> >> >> I am trying to enter data to kafka like >> {"type":"math","name":"srinivas","score":"10","school":"lfs"} >> >> I am thinking of some thing wrong with input RDD. Please let me know whats >> causing this error. >> >> Thanks, >> -Srinivas. >> >> >> >> -- >> View this message in context: >> http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9933.html >> Sent from the Apache Spark User List mailing list archive at Nabble.com. >> > >

Re: Spark Streaming Json file groupby function

2014-07-16 Thread Yin Huai
iveMessage(ActorCell.scala:498) > at akka.actor.ActorCell.invoke(ActorCell.scala:456) > at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) > at akka.dispatch.Mailbox.run(Mailbox.scala:219) > at > > akka.dispatch.ForkJoinExecutorConfigurator$Ak

Re: Spark Streaming Json file groupby function

2014-07-16 Thread srinivas
urrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) I am trying to enter data to kafka like {"type":"math","name":"srinivas","score":"10","school":"lfs"} I am thinking of some thing wrong with

Re: Spark Streaming Json file groupby function

2014-07-15 Thread Tathagata Das
e for Record > [error] recrdd.registerAsTable("table1") > [error] ^ > [error] one error found > [error] (compile:compile) Compilation failed > [error] Total time: 17 s, completed Jul 16, 2014 3:11:53 AM > > > Please advice me on how to proceed > > Thanks, > -Srinivas. > > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9868.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. >

Re: Spark Streaming Json file groupby function

2014-07-15 Thread srinivas
led [error] Total time: 17 s, completed Jul 16, 2014 3:11:53 AM Please advice me on how to proceed Thanks, -Srinivas. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9868.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-15 Thread Tathagata Das
one error found > [error] (compile:compile) Compilation failed > > > Please look into this and let me know if i am missing any thing. > > Thanks, > -Srinivas. > > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9816.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. >

Re: Spark Streaming Json file groupby function

2014-07-15 Thread srinivas
now if i am missing any thing. Thanks, -Srinivas. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9816.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-15 Thread Tathagata Das
ving me > jsonfile.scala:30: value registerAsTable is not a member of > org.apache.spark.rdd.RDD[(Any, Any, Any, Any)] > > Please let me know if i am missing any thing. > And using Spark Streaming can i really use sql kind of operations on > Dstreams? > > > > > &g

Re: Spark Streaming Json file groupby function

2014-07-14 Thread srinivas
ssage in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9714.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Spark Streaming Json file groupby function

2014-07-14 Thread Tathagata Das
to proceed from here. > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618p9661.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. >

Re: Spark Streaming Json file groupby function

2014-07-14 Thread srinivas
like to what transformation should i do to my existing dstream.I am very new to dealing with maps and dstream transformations..so please advise on how to proceed from here. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-functio

Re: Spark Streaming Json file groupby function

2014-07-14 Thread srinivas
like to what transformation should i do to my existing dstream.I am very new to dealing with maps and dstream transformations..so please advise on how to proceed from here. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-functio

Re: Spark Streaming Json file groupby function

2014-07-14 Thread Tathagata Das
yone please Let me know how to use groupby function..thanks > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. >

Spark Streaming Json file groupby function

2014-07-14 Thread srinivas
mutable.Map[String, Any]]) jsonf.print() ssc.start() ssc.awaitTermination() } Can anyone please Let me know how to use groupby function..thanks -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-Json-file-groupby-function-tp9618.html