I have Nodejs server where spark is NOT installed and have spark with YARN setup in different server.
Requirement is to run spark job from Nodejs server remotely. Can someone help on this?.
Thanks for prompt response.
It's not possible to spawn process remotely. I suggest you the following ways,
Elaborating the above answers, option 1 involves that spark is installed on both systems - the one with node server and the actual spark cluster. Spark on node server acts a client to the main spark cluster. Option 2 focuses on creating a rest API that handles triggers and these triggers initiate the spark job directly on the main cluster, this saves 2 installations.
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.