Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EMR cluster with cloudformation: how to enable debugging

When creating an EMR cluster via the UI, I can click 'enable debugging'.

Via the cli, I can add the parameter --enable-debugging.

How can I do it via cloudformation? I did give a LogUri, where I do see the logs, but the EMR web UI carries on telling me 'Debugging not configured' when running Spark jobs.

like image 582
Guillaume Avatar asked Dec 05 '25 20:12

Guillaume


1 Answers

It just is added as the first step in the steps...so the equivalent of the below in CloudFormation config.

"Steps": [{
  "Name": "Setup Hadoop Debugging",
  "ActionOnFailure": "TERMINATE_CLUSTER",
  "HadoopJarStep": {
    "Jar": "command-runner.jar",
    "Args": ["state-pusher-script"]
  }
}]
like image 166
Jim Avatar answered Dec 10 '25 12:12

Jim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!