You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Sergio Jiménez Barrio <dr...@gmail.com> on 2015/05/04 21:07:36 UTC

AJAX with Apache Spark

Hi,

 I am trying create a DashBoard of a job of Apache Spark. I need run Spark
Streaming 24/7 and when recive a ajax request this answer with the actual
state of the job. I have created the client, and the program in Spark. I
tried create the service of response with play, but this run the program
with a request. I want send the accumulator of spark program with a request.

Sorry for my explanation. Any idea? Maybe with Play?

Thanks

Re: AJAX with Apache Spark

Posted by Olivier Girardot <ss...@gmail.com>.
Hi Sergio,
you shouldn't architecture it this way, rather update a storage with Spark
Streaming that your Play App will query.
For example a Cassandra table, or Redis, or anything that will be able to
answer you in milliseconds, rather than "querying" the Spark Streaming
program.

Regards,

Olivier.

Le lun. 4 mai 2015 à 20:08, Sergio Jiménez Barrio <dr...@gmail.com> a
écrit :

> Hi,
>
>  I am trying create a DashBoard of a job of Apache Spark. I need run Spark
> Streaming 24/7 and when recive a ajax request this answer with the actual
> state of the job. I have created the client, and the program in Spark. I
> tried create the service of response with play, but this run the program
> with a request. I want send the accumulator of spark program with a request.
>
> Sorry for my explanation. Any idea? Maybe with Play?
>
> Thanks
>