I have almost the same case. I will tell you what I am actually doing, if it
is according to your requirement, then I will love to help you.

1. my database is aerospike. I get data from it.
2. written standalone spark app (it does not run in standalone mode, but
with simple java command or maven command), even I make its JAR file with
simple java command and it runs spark without interactive shell.
3. Write different methods based on different queries in standalone spark
app.
4. my restful API is based on NodeJS, user sends his request through NodeJS,
request pass to my simple java maven project, execute particular spark
method based on query, returns result to NodeJS in JSON format.



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-application-with-a-RESTful-API-tp23654p23831.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to