Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run C algorithm on Spark cluster? [closed]

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.

like image 319
Manolis P. Avatar asked Feb 15 '26 20:02

Manolis P.


1 Answers

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.

like image 197
Shane Avatar answered Feb 18 '26 11:02

Shane