I am working on an PHP application using MongoDB as a database platform. Collection in MongoDB has massive volume of data .Hence I have opted for Apache Spark to generate analytics.
I need to execute spark-submit command from PHP application.But its execution doesn't return any output to PHP application.
Following is code snippet
$result=shell_exec('./bin/spark-submit examples/src/main/python/pi.py');
print_r($result);
Please suggest me an appropriate solution