Warm tip: This article is reproduced from serverfault.com, please click

How to run C algorithm on Spark cluster?

发布于 2020-11-26 20:28:04

I have an algorithm that is written in C.

I want to use Spark to run it on a cluster of nodes. How can I run my C executable on Spark? I have read about JNI and Java Process to execute my binary.

Questioner
Manolis P.
Viewed
0
act_coder 2020-11-28 12:17:21

Here is a nice article from databricks on how we can run c and c++ codes in apache spark.

https://kb.databricks.com/_static/notebooks/scala/run-c-plus-plus-scala.html

After moving the c/c++ codes to the underlying distributed file system, You can compile the code and run on spark worker nodes.