Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: INFRA-715 Upgrade spark #10

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ locals {
spark_dynamic_allocation_enabled = var.spark_dynamic_allocation_enabled
spark_max_executors = var.spark_max_executors
spark_min_executors = var.spark_min_executors
spark_version = var.zeppelin_version
spark_mirror = var.zeppelin_mirror
}
)
},
Expand Down
8 changes: 4 additions & 4 deletions templates/cloud_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ runcmd:
- resolvconf -u
#Install Spark
- cd /opt
- wget https://dlcdn.apache.org/spark/spark-3.5.1/spark-3.5.1-bin-hadoop3.tgz
- tar xzf spark-3.5.1-bin-hadoop3.tgz
- mv spark-3.5.1-bin-hadoop3 spark
- rm spark-3.5.1-bin-hadoop3.tgz
- wget ${spark_mirror}/spark/spark-${spark_version}/spark-${spark_version}-bin-hadoop3.tgz
- tar xzf spark-${spark_version}-bin-hadoop3.tgz
- mv spark-${spark_version}-bin-hadoop3 spark
- rm spark-${spark_version}-bin-hadoop3.tgz
- cp /opt/spark-defaults.conf /opt/spark/conf/spark-defaults.conf
#Install Zeppelin
- cd /opt
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,18 @@ variable "hive_metastore_url" {
type = string
}

variable "spark_version" {
description = "Version of spark"
type = string
default = "3.5.2"
}

variable "spark_mirror" {
description = "Mirror from which to download spark"
type = string
default = "https://dlcdn.apache.org"
}

variable "spark_sql_warehouse_dir" {
description = "S3 path of the spark sql warehouse"
type = string
Expand Down
Loading