mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
A step's script that ran sudo -u hadoop spark-submit ..., as a step does on EMR, failed with exit code 127, as the image steps run in has no sudo. The Release Guide's "Using HBase snapshots" runs a command-runner.jar step of sudo -u hbase, and the Management Guide's Kerberos users page a script-runner.jar script running sudo kadmin.local. Only bootstrap actions had Floci's sudo, which went before the image was kept. Each step on a cluster now finds that same sudo first on its PATH, written next to the hdfs and hadoop-streaming stand-ins the cluster's Hadoop setup already writes there, and a Hive step's shell commands find it too, written while its container is still root. It drops its options, a long one's value given apart included, and runs the command as the step's own hadoop user, so sudo -u hadoop runs as on EMR, while a command that needs root fails as it would for hadoop. The script moves to EmrServerlessSparkRunner, where the setup is, and the bootstrap actions write it from there.