Home > other >  How to use the spark
How to use the spark

Time:09-25

Why the spark program run once submitted will be over??????? Each performs a calculation is going to write a program?? Or write a script to submit application?? Web applications, for one, I write a servlet, then you can run into the tomcat inside, each browser to submit a request, my servlet code is executed once, spark is no function like this??????????? The great spirit show just a little

CodePudding user response:

Where master, post not sink!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CodePudding user response:

In web services to create a sparkcontext instance, then you can request is submitted to spark a

CodePudding user response:

Spark is divided into the real-time and off-line, if it is offline, you submit it to run once finished stopped, of course, if it is a real-time, data as long as you feed him, he began to calculate, you have to combined with the specific requirements

CodePudding user response:

Spark can start ThrifServer as JDBC Server to run continuously, response to a query (a job)

CodePudding user response:

reference qq_23660243 reply: 3/f
spark is divided into the real-time and off-line, and if it is offline, you submit once it runs out of course stopped, if it is a real-time, data as long as you feed him, he began to calculate, you need a specific demand ah pro

What is real time? What is offline?? I now seems to be found only spark Stream smack of continuous running... , did not even get a Demo the club's official website, can't continue to see, ah, sad side, I 'm so sad

CodePudding user response:

reference 5 floor lei_1000 reply:
Spark can start ThrifServer as JDBC Server to run continuously, response to a query (a job)

ThrifServer is a what?? And I hope that the effect is similar to the effect of the web project, a JDBC server seems not much use

CodePudding user response:

Spark - streaming is real-time calculation, I have written some demo, the address is: http://blog.csdn.net/qq_23660243/article/details/51481407 you can refer to some, is some of the most basic

CodePudding user response:

refer to 7th floor k1191e response:
Quote: refer to fifth floor lei_1000 response:

Spark can start ThrifServer as JDBC Server to run continuously, response to a query (a job)

ThrifServer is a what?? And I hope that the effect is similar to the effect of the web project, a JDBC server seems not much use


I guess you didn't fully understand what I mean, JDBC is an interface, it allows you to submit SQL, then it will be converted to Spark the Job to perform, there will always be listening after the Server startup,

CodePudding user response:

I don't understand of the spark, sorry, can't help you,



  • Related