具有 cloudformation 的 AWS EMR 集群:如何启用调试
AWS EMR cluster with cloudformation: how to enable debugging
通过UI创建EMR集群时,我可以点击'enable debugging'。
通过cli,我可以添加参数--enable-debugging
。
如何通过 cloudformation 完成?我确实提供了一个 LogUri
,在那里我确实看到了日志,但是 EMR 网络 UI 在 运行 Spark 作业时继续告诉我 'Debugging not configured'。
它只是作为步骤中的第一步添加...因此相当于 CloudFormation 配置中的以下内容。
"Steps": [{
"Name": "Setup Hadoop Debugging",
"ActionOnFailure": "TERMINATE_CLUSTER",
"HadoopJarStep": {
"Jar": "command-runner.jar",
"Args": ["state-pusher-script"]
}
}]
通过UI创建EMR集群时,我可以点击'enable debugging'。
通过cli,我可以添加参数--enable-debugging
。
如何通过 cloudformation 完成?我确实提供了一个 LogUri
,在那里我确实看到了日志,但是 EMR 网络 UI 在 运行 Spark 作业时继续告诉我 'Debugging not configured'。
它只是作为步骤中的第一步添加...因此相当于 CloudFormation 配置中的以下内容。
"Steps": [{
"Name": "Setup Hadoop Debugging",
"ActionOnFailure": "TERMINATE_CLUSTER",
"HadoopJarStep": {
"Jar": "command-runner.jar",
"Args": ["state-pusher-script"]
}
}]