Add custom configurations, such as JSON, to the file, say custom_config.json
[ { "Classification": "spark-env", "Properties": {}, "Configurations": [ { "Classification": "export", "Properties": { "VARIABLE_NAME": VARIABLE_VALUE, } } ] } ]
And, when creating an emr cluster, pass the file link to the --configurations
option
aws emr create-cluster --configurations file://custom_config.json --other-options...
source share