How do I include PHP required libs in an AWS EMR streaming cluster How do I include PHP required libs in an AWS EMR streaming cluster hadoop hadoop

How do I include PHP required libs in an AWS EMR streaming cluster


Following Guy's comment I've used a bash script similar to the one you can find here.

I've changed the require_once 'vendor/autoload.php' line in the code to point to the location where i dropped my files. (/home/hadoop/contents worked perfect).lastly I've added an EMR bootstrap custom step where you can add the bash script so it can run before the PHP streaming step.