mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
In the docker runner mode a step's HadoopJarStep.Properties, "A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function", were kept but never applied, and of a cluster's classifications only spark-defaults, spark-hive-site and spark-env reached its steps. Now: - A custom JAR step's Properties are system properties of the JVM its main class runs in, through SPARK_SUBMIT_OPTS, each -Dkey=value in single quotes as spark-submit's launcher reads them, after any Java options a spark-env export puts there, so a step's own win. A command-runner.jar or script-runner.jar step's would be its runner's own JVM's, which Floci has none of, and a JVM's system properties do not pass to a process it starts, so they go nowhere. The API sentence is the only source; emr.md calls this Floci's reading. - core-site, which will "Change values in Hadoop's core-site.xml file", reaches Spark as spark.hadoop. settings ahead of spark-hive-site's, as core-site.xml comes ahead of hive-site.xml, with spark-defaults winning over both; a command's hadoop command gets it too, after the cluster's HDFS settings in its core-site.xml copy, escaped for XML. - spark-log4j2, which will "Change values in Spark's log4j2.properties file", follows the log4j2.properties of the Spark configuration a spark-env export of SPARK_CONF_DIR names, else the image's, in a copy of the step's own, a later key winning: a Spark step with some runs spark-submit after a wrapper that makes the copy, and a command's wrapper does the same before its own changes, now from that exported folder too, links followed. What is added starts on a line of its own, as the image's log4j2.properties has no line break at its end, and a value's leading spaces are escaped, as Properties.load would skip them. SparkJobRunner.Job gets coreSite and sparkLog4j2 components, which an EMR Serverless run leaves empty.