Skip to content

Commit

Permalink
Add Spark Log Level Support
Browse files Browse the repository at this point in the history
  • Loading branch information
harichintala1 committed Aug 17, 2023
1 parent c9bd167 commit 1d81226
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"create_job": true,
"glue_job_name": "glue-job-ingester",
"reporting_hub_spark_driver_mem": "2g",
"reporting_hub_spark_executor_mem": "2g",
"reporting_hub_spark_executor_mem": "2g",
"reporting_hub_spark_log_level": "INFO",
"create_security_conf": true,
"setup_buckets": true,
"create_kinesis_streams": true,
Expand Down Expand Up @@ -40,6 +41,7 @@
"glue_job_name": "glue-job-ingester",
"reporting_hub_spark_driver_mem": "2g",
"reporting_hub_spark_executor_mem": "2g",
"reporting_hub_spark_log_level": "INFO",
"create_security_conf": true,
"setup_buckets": true,
"create_kinesis_streams": true,
Expand Down Expand Up @@ -71,7 +73,8 @@
"create_job": true,
"glue_job_name": "glue-job-ingester",
"reporting_hub_spark_driver_mem": "2g",
"reporting_hub_spark_executor_mem": "2g",
"reporting_hub_spark_executor_mem": "2g",
"reporting_hub_spark_log_level": "WARN",
"create_security_conf": true,
"setup_buckets": true,
"create_kinesis_streams": true,
Expand Down Expand Up @@ -103,7 +106,8 @@
"create_job": true,
"glue_job_name": "glue-job-ingester",
"reporting_hub_spark_driver_mem": "26g",
"reporting_hub_spark_executor_mem": "26g",
"reporting_hub_spark_executor_mem": "26g",
"reporting_hub_spark_log_level": "WARN",
"create_security_conf": true,
"setup_buckets": true,
"create_kinesis_streams": true,
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/digital-prison-reporting/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ locals {
# Glue Job parameters
reporting_hub_driver_mem = local.application_data.accounts[local.environment].reporting_hub_spark_driver_mem
reporting_hub_executor_mem = local.application_data.accounts[local.environment].reporting_hub_spark_executor_mem
reporting_hub_log_level = local.application_data.accounts[local.environment].reporting_hub_spark_log_level

# Common Policies
kms_read_access_policy = "${local.project}_kms_read_policy"
Expand Down
3 changes: 2 additions & 1 deletion terraform/environments/digital-prison-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ module "glue_reporting_hub_job" {
"--dpr.redshift.secrets.name" = "${local.project}-redshift-secret-${local.environment}"
"--dpr.datamart.db.name" = "datamart"
"--spark.driver.memory" = local.reporting_hub_driver_mem
"--spark.executor.memory" = local.reporting_hub_executor_mem
"--spark.executor.memory" = local.reporting_hub_executor_mem
"--dpr.log.level" = local.reporting_hub_log_level
}
}

Expand Down

0 comments on commit 1d81226

Please sign in to comment.