In the docker runner mode a command-runner.jar step running
hadoop-streaming, which "Submits an Hadoop streaming program. In the
console and some SDKs, this is a streaming step", or hadoop-lzo, the LZO
indexer, failed without running, as the image's hadoop had no MapReduce;
and a command's hadoop fs could not reach S3, its classpath having no
AWS SDK v2 and the image's EMRFS not being pointed at Floci.
Now a step's hadoop command, on its cluster:
- runs MapReduce in local mode: links to Spark's shaded Hadoop client,
the image's only copy of MapReduce, and to the jar Spark's own S3A
finds the AWS SDK in make up its MapReduce home, so they are on its
class path whatever HADOOP_CLASSPATH a command sets, and a copy of its
mapred-site.xml sets mapreduce.framework.name to local. The local job
runner names a job's -files and -archives by their path alone, which
the default file system, the cluster's HDFS, resolves, so its staging
folder is a link to the same path in the HDFS folder.
- reaches Floci's S3 through S3A, with the settings its spark-submit
gets, now one list for both, ahead of the cluster's HDFS and
core-site.
- logs to standard error when its log4j.properties is empty, as the
image's is, in the layout of the Management Guide's step log lines, so
a failed job's reason is in the step's stderr.
- runs hadoop-streaming from the jar the image has, where the image's
own hadoop-streaming names /usr/lib/hadoop-mapreduce, which it lacks.
hive-script and pig-script steps still fail without running.